summaryrefslogtreecommitdiff
path: root/fs/proc/root.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2019-09-04 02:05:48 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2019-09-05 21:34:22 +0300
commit533770cc0ae84890624dc129609f3d75855c8982 (patch)
treeefaf0d5823cd49d62baa600422d497db6fc0fa04 /fs/proc/root.c
parent1dd9bc08cf1420d466dd8dcfcc233777e61ca5d2 (diff)
downloadlinux-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 'fs/proc/root.c')
-rw-r--r--fs/proc/root.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/proc/root.c b/fs/proc/root.c
index 33f72d1b92cc..0b7c8dffc9ae 100644
--- a/fs/proc/root.c
+++ b/fs/proc/root.c
@@ -157,8 +157,7 @@ static int proc_get_tree(struct fs_context *fc)
{
struct proc_fs_context *ctx = fc->fs_private;
- fc->s_fs_info = ctx->pid_ns;
- return vfs_get_super(fc, vfs_get_keyed_super, proc_fill_super);
+ return get_tree_keyed(fc, proc_fill_super, ctx->pid_ns);
}
static void proc_fs_context_free(struct fs_context *fc)