summaryrefslogtreecommitdiff
path: root/include/linux/pseudo_fs.h
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2025-10-29 13:20:14 +0100
committerChristian Brauner <brauner@kernel.org>2025-10-31 10:16:23 +0100
commitc9822fad8038870bb690543539c8e9ad5213b12f (patch)
treee1da87a421b55cc7bcba4aca80478303ea085fec /include/linux/pseudo_fs.h
parent211ddde0823f1442e4ad052a2f30f050145ccada (diff)
downloadlwn-c9822fad8038870bb690543539c8e9ad5213b12f.tar.gz
lwn-c9822fad8038870bb690543539c8e9ad5213b12f.zip
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>
Diffstat (limited to 'include/linux/pseudo_fs.h')
-rw-r--r--include/linux/pseudo_fs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/pseudo_fs.h b/include/linux/pseudo_fs.h
index 2503f7625d65..a651e60d9410 100644
--- a/include/linux/pseudo_fs.h
+++ b/include/linux/pseudo_fs.h
@@ -9,6 +9,7 @@ struct pseudo_fs_context {
const struct xattr_handler * const *xattr;
const struct dentry_operations *dops;
unsigned long magic;
+ unsigned int s_d_flags;
};
struct pseudo_fs_context *init_pseudo(struct fs_context *fc,