]> Pileus Git - ~andy/linux/blobdiff - fs/namespace.c
[ARM] 3856/1: Add clocksource for Intel IXP4xx platforms
[~andy/linux] / fs / namespace.c
index 866430bb024def32565e231600300c5411d55663..fa7ed6a9fc2d2cf79a2633f8f6834311f8051be3 100644 (file)
@@ -8,7 +8,6 @@
  * Heavily rewritten.
  */
 
-#include <linux/config.h>
 #include <linux/syscalls.h>
 #include <linux/slab.h>
 #include <linux/sched.h>
@@ -526,10 +525,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);