summaryrefslogtreecommitdiffstats
path: root/fs/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/super.c')
-rw-r--r--fs/super.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/super.c b/fs/super.c
index 2c38541cd89f..72b4a5afcfd6 100644
--- a/fs/super.c
+++ b/fs/super.c
@@ -1415,12 +1415,6 @@ int vfs_get_tree(struct fs_context *fc)
if (fc->root)
return -EBUSY;
- if (!(fc->sb_flags & SB_KERNMOUNT) &&
- fc->purpose != FS_CONTEXT_FOR_SUBMOUNT) {
- if (!mount_capable(fc))
- return -EPERM;
- }
-
/* Get the mountable root in fc->root, with a ref on the root and a ref
* on the superblock.
*/