summaryrefslogtreecommitdiffstats
path: root/fs/fsopen.c
diff options
context:
space:
mode:
authorAl Viro2019-05-13 00:16:04 +0200
committerAl Viro2019-05-26 00:00:01 +0200
commit059338aae33165179352a26b58d815801072c87d (patch)
treead75b40c28596ac0ccd50a2588f7e1444243a811 /fs/fsopen.c
parentcpuset: move mount -t cpuset logics into cgroup.c (diff)
downloadkernel-qcow2-linux-059338aae33165179352a26b58d815801072c87d.tar.gz
kernel-qcow2-linux-059338aae33165179352a26b58d815801072c87d.tar.xz
kernel-qcow2-linux-059338aae33165179352a26b58d815801072c87d.zip
move mount_capable() calls to vfs_get_tree()
sget_fc() is called only from ->get_tree() instances and the only instance not calling it is legacy_get_tree(), which calls mount_capable() directly. In all sget_fc() callers the checks could be moved to the very beginning of ->get_tree() - ->user_ns is not changed in between. So lifting the checks to the only caller of ->get_tree() is OK. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/fsopen.c')
0 files changed, 0 insertions, 0 deletions