mirror of
https://github.com/adulau/aha.git
synced 2024-12-30 12:46:17 +00:00
vfs: fix shrink_submounts
In the last refactoring of shrink_submounts a variable was not completely renamed. So finish the renaming of mnt to m now. Without this if you attempt to mount an nfs mount that has both automatic nfs sub mounts on it, and has normal mounts on it. The unmount will succeed when it should not. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> Cc: Alexey Dobriyan <adobriyan@gmail.com> Cc: Al Viro <viro@ZenIV.linux.org.uk Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
8891d6da17
commit
afef80b3d8
1 changed files with 2 additions and 2 deletions
|
@ -1815,8 +1815,8 @@ static void shrink_submounts(struct vfsmount *mnt, struct list_head *umounts)
|
||||||
while (!list_empty(&graveyard)) {
|
while (!list_empty(&graveyard)) {
|
||||||
m = list_first_entry(&graveyard, struct vfsmount,
|
m = list_first_entry(&graveyard, struct vfsmount,
|
||||||
mnt_expire);
|
mnt_expire);
|
||||||
touch_mnt_namespace(mnt->mnt_ns);
|
touch_mnt_namespace(m->mnt_ns);
|
||||||
umount_tree(mnt, 1, umounts);
|
umount_tree(m, 1, umounts);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue