diff options
-rw-r--r-- | fs/namespace.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/namespace.c b/fs/namespace.c index edc1c4aef75..b3d8f51c6fa 100644 --- a/fs/namespace.c +++ b/fs/namespace.c | |||
@@ -1244,8 +1244,9 @@ void umount_tree(struct vfsmount *mnt, int propagate, struct list_head *kill) | |||
1244 | list_del_init(&p->mnt_expire); | 1244 | list_del_init(&p->mnt_expire); |
1245 | list_del_init(&p->mnt_list); | 1245 | list_del_init(&p->mnt_list); |
1246 | __touch_mnt_namespace(p->mnt_ns); | 1246 | __touch_mnt_namespace(p->mnt_ns); |
1247 | if (p->mnt_ns) | ||
1248 | __mnt_make_shortterm(p); | ||
1247 | p->mnt_ns = NULL; | 1249 | p->mnt_ns = NULL; |
1248 | __mnt_make_shortterm(p); | ||
1249 | list_del_init(&p->mnt_child); | 1250 | list_del_init(&p->mnt_child); |
1250 | if (p->mnt_parent != p) { | 1251 | if (p->mnt_parent != p) { |
1251 | p->mnt_parent->mnt_ghosts++; | 1252 | p->mnt_parent->mnt_ghosts++; |