patch-2.2.0-pre5 linux/fs/inode.c

Next file: linux/fs/lockd/clntlock.c
Previous file: linux/fs/fat/inode.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.0-pre4/linux/fs/inode.c linux/fs/inode.c
@@ -147,12 +147,8 @@
 		__wait_on_inode(inode);
 		spin_lock(&inode_lock);
 	} else {
-		struct list_head *insert = &inode_in_use;
-		if (!inode->i_count)
-			insert = inode_in_use.prev;
 		list_del(&inode->i_list);
-		list_add(&inode->i_list, insert);
-
+		list_add(&inode->i_list, &inode_in_use);
 		/* Set I_LOCK, reset I_DIRTY */
 		inode->i_state ^= I_DIRTY | I_LOCK;
 		spin_unlock(&inode_lock);
@@ -705,7 +701,7 @@
 			}
 			else if (!(inode->i_state & I_DIRTY)) {
 				list_del(&inode->i_list);
-				list_add(&inode->i_list, inode_in_use.prev);
+				list_add(&inode->i_list, &inode_in_use);
 			}
 #ifdef INODE_PARANOIA
 if (inode->i_flock)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov