Commit 4e1b36fb485dd81b0818ef1bc8fb5c0f2923a283
1 parent
8c3ee42e80
Exists in
master
and in
4 other branches
[PATCH] umount_tree() will unhash everything itself
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Showing 1 changed file with 1 additions and 2 deletions Side-by-side Diff
fs/pnode.c
... | ... | @@ -212,8 +212,7 @@ |
212 | 212 | out: |
213 | 213 | spin_lock(&vfsmount_lock); |
214 | 214 | while (!list_empty(&tmp_list)) { |
215 | - child = list_entry(tmp_list.next, struct vfsmount, mnt_hash); | |
216 | - list_del_init(&child->mnt_hash); | |
215 | + child = list_first_entry(&tmp_list, struct vfsmount, mnt_hash); | |
217 | 216 | umount_tree(child, 0, &umount_list); |
218 | 217 | } |
219 | 218 | spin_unlock(&vfsmount_lock); |