X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;ds=sidebyside;f=fs%2Fnamespace.c;h=b3ed212ea416f4686b1c5da0e37895d42bfa677e;hb=d44b3be88ed58bb1bbbf7d70c533598b3dc3d870;hp=866430bb024def32565e231600300c5411d55663;hpb=1d77062b1402aef5b26e1d3776991126e8026bde;p=powerpc.git 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);