patch-1.3.85 linux/fs/inode.c

Next file: linux/fs/locks.c
Previous file: linux/fs/fcntl.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.84/linux/fs/inode.c linux/fs/inode.c
@@ -54,11 +54,14 @@
 
 static inline void insert_inode_free(struct inode *inode)
 {
-	inode->i_next = first_inode;
-	inode->i_prev = first_inode->i_prev;
-	inode->i_next->i_prev = inode;
-	inode->i_prev->i_next = inode;
+	struct inode * prev, * next = first_inode;
+
 	first_inode = inode;
+	prev = next->i_prev;
+	inode->i_next = next;
+	inode->i_prev = prev;
+	prev->i_next = inode;
+	next->i_prev = inode;
 }
 
 static inline void remove_inode_free(struct inode *inode)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this