Re: [PATCH RFC v3 29/44] s390/hypfs: use fc_init_pseudo()
From: Alexander Mikhalitsyn
Date: Tue Nov 17 2026 - 03:36:46 EST
On Mon, 2026-11-16 at 12:05 +0100, Christian Brauner wrote:
> Initialize hypfs as a pseudo filesystem. This raises SB_I_PSEUDO and
> also SB_I_NOEXEC and SB_I_NODEV. hypfs never holds executables or
> device nodes.
>
Reviewed-by: Alexander Mikhalitsyn <alex@xxxxxxxxxxxx>
> Signed-off-by: Christian Brauner (Amutable) <brauner@xxxxxxxxxx>
> ---
> arch/s390/hypfs/inode.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/arch/s390/hypfs/inode.c b/arch/s390/hypfs/inode.c
> index 559b011e68800..8662169de477a 100644
> --- a/arch/s390/hypfs/inode.c
> +++ b/arch/s390/hypfs/inode.c
> @@ -12,6 +12,7 @@
> #include <linux/errno.h>
> #include <linux/fs.h>
> #include <linux/fs_context.h>
> +#include <linux/pseudo_fs.h>
> #include <linux/fs_parser.h>
> #include <linux/namei.h>
> #include <linux/vfs.h>
> @@ -301,6 +302,7 @@ static int hypfs_init_fs_context(struct
> fs_context *fc)
> sbi->gid = current_gid();
>
> fc->s_fs_info = sbi;
> + fc_init_pseudo(fc);
> fc->ops = &hypfs_context_ops;
> return 0;
> }