X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fnamespace.c;h=b3ed212ea416f4686b1c5da0e37895d42bfa677e;hb=5806db22cffc7557b675d3c9229f327980aee797;hp=866430bb024def32565e231600300c5411d55663;hpb=1d77062b1402aef5b26e1d3776991126e8026bde;p=linux-2.6 diff --git a/fs/namespace.c b/fs/namespace.c index 866430bb02..b3ed212ea4 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -526,10 +526,8 @@ void umount_tree(struct vfsmount *mnt, int propagate, struct list_head *kill) { struct vfsmount *p; - for (p = mnt; p; p = next_mnt(p, mnt)) { - list_del(&p->mnt_hash); - list_add(&p->mnt_hash, kill); - } + for (p = mnt; p; p = next_mnt(p, mnt)) + list_move(&p->mnt_hash, kill); if (propagate) propagate_umount(kill);