diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2019-05-12 23:31:45 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2019-05-25 23:59:59 +0200 |
commit | 20284ab7427ffac514faf44fd9eb50e5745f4474 (patch) | |
tree | 6babbbfbcb3fea8deef55d2d03088218e1fe591b /fs/internal.h | |
parent | legacy_get_tree(): pass fc->user_ns to mount_capable() (diff) | |
download | linux-20284ab7427ffac514faf44fd9eb50e5745f4474.tar.xz linux-20284ab7427ffac514faf44fd9eb50e5745f4474.zip |
switch mount_capable() to fs_context
now both callers of mount_capable() have access to fs_context;
the only difference is that for sget_fc() we have the possibility
of fc->global being true, while for legacy_get_tree() it's guaranteed
to be impossible. Unify to more generic variant...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/internal.h')
-rw-r--r-- | fs/internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/internal.h b/fs/internal.h index 65db901420af..b089a489da1f 100644 --- a/fs/internal.h +++ b/fs/internal.h @@ -114,7 +114,7 @@ extern struct file *alloc_empty_file_noaccount(int, const struct cred *); extern int reconfigure_super(struct fs_context *); extern bool trylock_super(struct super_block *sb); extern struct super_block *user_get_super(dev_t); -extern bool mount_capable(struct file_system_type *, struct user_namespace *); +extern bool mount_capable(struct fs_context *); /* * open.c |