patch-2.1.46 linux/fs/inode.c
Next file: linux/fs/minix/inode.c
Previous file: linux/fs/file_table.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Fri Jul 18 12:54:33 1997
- Orig file:
v2.1.45/linux/fs/inode.c
- Orig date:
Thu Jul 17 10:06:07 1997
diff -u --recursive --new-file v2.1.45/linux/fs/inode.c linux/fs/inode.c
@@ -296,7 +296,7 @@
memset(&inode->u, 0, sizeof(inode->u));
inode->i_sock = 0;
inode->i_op = NULL;
- inode->i_nlink = 0;
+ inode->i_nlink = 1;
inode->i_writecount = 0;
inode->i_size = 0;
memset(&inode->i_dquot, 0, sizeof(inode->i_dquot));
@@ -438,6 +438,8 @@
if (!inode->i_nlink) {
list_del(&inode->i_hash);
INIT_LIST_HEAD(&inode->i_hash);
+ list_del(&inode->i_list);
+ INIT_LIST_HEAD(&inode->i_list);
if (op && op->delete_inode) {
void (*delete)(struct inode *) = op->delete_inode;
spin_unlock(&inode_lock);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov