]> err.no Git - linux-2.6/blobdiff - fs/namespace.c
[PATCH] libata: implement ata_port_max_devices()
[linux-2.6] / fs / namespace.c
index 866430bb024def32565e231600300c5411d55663..b3ed212ea416f4686b1c5da0e37895d42bfa677e 100644 (file)
@@ -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);