diff options
author | Christoph Hellwig <hch@lst.de> | 2022-10-31 13:46:26 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2022-11-25 00:52:19 -0500 |
commit | cda2ed05aade303b7d89844a0333168c3484634a (patch) | |
tree | 8c8b7475ed857f7d24740e5cc07669650cc3ec8f /include/linux/fs_context.h | |
parent | 3aca47127a646165965ff52803e2b269eed91afc (diff) | |
download | lwn-cda2ed05aade303b7d89844a0333168c3484634a.tar.gz lwn-cda2ed05aade303b7d89844a0333168c3484634a.zip |
fs: simplify vfs_get_super
Remove the pointless keying argument and associated enum and pass the
fill_super callback and a "bool reconf" instead. Also mark the function
static given that there are no users outside of super.c.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/fs_context.h')
-rw-r--r-- | include/linux/fs_context.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/include/linux/fs_context.h b/include/linux/fs_context.h index 13fa6f3df8e4..87a34f2fa68d 100644 --- a/include/linux/fs_context.h +++ b/include/linux/fs_context.h @@ -145,20 +145,6 @@ extern void fc_drop_locked(struct fs_context *fc); int reconfigure_single(struct super_block *s, int flags, void *data); -/* - * sget() wrappers to be called from the ->get_tree() op. - */ -enum vfs_get_super_keying { - vfs_get_single_super, /* Only one such superblock may exist */ - vfs_get_single_reconf_super, /* As above, but reconfigure if it exists */ - vfs_get_keyed_super, /* Superblocks with different s_fs_info keys may exist */ - vfs_get_independent_super, /* Multiple independent superblocks may exist */ -}; -extern int vfs_get_super(struct fs_context *fc, - enum vfs_get_super_keying keying, - int (*fill_super)(struct super_block *sb, - struct fs_context *fc)); - extern int get_tree_nodev(struct fs_context *fc, int (*fill_super)(struct super_block *sb, struct fs_context *fc)); |