Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

libfs: allow to specify s_d_flags

Make it possible for pseudo filesystems to specify default dentry flags.

Link: https://patch.msgid.link/20251029-work-namespace-nstree-listns-v4-1-2e6f823ebdc0@kernel.org
Tested-by: syzbot@syzkaller.appspotmail.com
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>

+2
+1
fs/libfs.c
··· 680 680 s->s_export_op = ctx->eops; 681 681 s->s_xattr = ctx->xattr; 682 682 s->s_time_gran = 1; 683 + s->s_d_flags |= ctx->s_d_flags; 683 684 root = new_inode(s); 684 685 if (!root) 685 686 return -ENOMEM;
+1
include/linux/pseudo_fs.h
··· 9 9 const struct xattr_handler * const *xattr; 10 10 const struct dentry_operations *dops; 11 11 unsigned long magic; 12 + unsigned int s_d_flags; 12 13 }; 13 14 14 15 struct pseudo_fs_context *init_pseudo(struct fs_context *fc,