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
- Lines: 19
- Date:
Mon Apr 8 09:46:20 1996
- Orig file:
v1.3.84/linux/fs/inode.c
- Orig date:
Mon Mar 18 10:38:59 1996
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