This uses the newly introduced list_move macro for autofs

--- linus-2.5/fs/autofs4/expire.c       Sun Jun  9 04:15:57 2002
+++ thunder-2.5/fs/autofs4/expire.c     Sun Jun  9 06:29:10 2002
@@ -200,8 +200,7 @@
                        DPRINTK(("autofs_expire: returning %p %.*s\n",
                                 dentry, (int)dentry->d_name.len, 
dentry->d_name.name));
                        /* Start from here next time */
-                       list_del(&root->d_subdirs);
-                       list_add(&root->d_subdirs, &dentry->d_child);
+                       list_move(&root->d_subdirs, &dentry->d_child);
                        dget(dentry);
                        spin_unlock(&dcache_lock);
 

-- 
Lightweight patch manager using pine. If you have any objections, tell me.

Reply via email to