aboutsummaryrefslogtreecommitdiffstats
path: root/fs/namespace.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2009-04-07 12:21:18 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2009-06-11 21:35:59 -0400
commitdd5cae6e9772ecc62fd374f7a8ec10eb51c96c4d (patch)
tree48cfed52f4cc4fc9e2d91b1c8646f438f2f0e110 /fs/namespace.c
parent5b857119538daac7118c1364d7ff3613f12b84d3 (diff)
Don't bother with check_mnt() in do_add_mount() on shrinkable ones
These guys are what we add as submounts; checks for "is that attached in our namespace" are simply irrelevant for those and counterproductive for use of private vfsmount trees a-la what NFS folks want. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/namespace.c')
-rw-r--r--fs/namespace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/namespace.c b/fs/namespace.c
index 134d494158d..88a904d5aa2 100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -1698,7 +1698,7 @@ int do_add_mount(struct vfsmount *newmnt, struct path *path,
1698 follow_down(&path->mnt, &path->dentry)) 1698 follow_down(&path->mnt, &path->dentry))
1699 ; 1699 ;
1700 err = -EINVAL; 1700 err = -EINVAL;
1701 if (!check_mnt(path->mnt)) 1701 if (!(mnt_flags & MNT_SHRINKABLE) && !check_mnt(path->mnt))
1702 goto unlock; 1702 goto unlock;
1703 1703
1704 /* Refuse the same filesystem on the same mount point */ 1704 /* Refuse the same filesystem on the same mount point */