diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2019-09-04 02:05:48 +0300 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2019-09-05 21:34:22 +0300 |
commit | 533770cc0ae84890624dc129609f3d75855c8982 (patch) | |
tree | efaf0d5823cd49d62baa600422d497db6fc0fa04 /include/linux/fs_context.h | |
parent | 1dd9bc08cf1420d466dd8dcfcc233777e61ca5d2 (diff) | |
download | linux-533770cc0ae84890624dc129609f3d75855c8982.tar.xz |
new helper: get_tree_keyed()
For vfs_get_keyed_super users.
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 | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/fs_context.h b/include/linux/fs_context.h index 7c6fe3d47fa6..aad5e68d58e2 100644 --- a/include/linux/fs_context.h +++ b/include/linux/fs_context.h @@ -136,7 +136,7 @@ extern int vfs_get_tree(struct fs_context *fc); extern void put_fs_context(struct fs_context *fc); /* - * sget() wrapper to be called from the ->get_tree() op. + * 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 */ @@ -147,12 +147,17 @@ 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)); extern int get_tree_single(struct fs_context *fc, int (*fill_super)(struct super_block *sb, struct fs_context *fc)); +extern int get_tree_keyed(struct fs_context *fc, + int (*fill_super)(struct super_block *sb, + struct fs_context *fc), + void *key); extern const struct file_operations fscontext_fops; |