patch-2.0.30 linux/fs/inode.c

Next file: linux/fs/namei.c
Previous file: linux/fs/ext2/inode.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.29/linux/fs/inode.c linux/fs/inode.c
@@ -173,6 +173,7 @@
 {
 	struct wait_queue * wait;
 
+	inode->i_count++;
 	truncate_inode_pages(inode, 0);
 	wait_on_inode(inode);
 	if (IS_WRITABLE(inode)) {
@@ -182,7 +183,7 @@
 	remove_inode_hash(inode);
 	remove_inode_free(inode);
 	wait = ((volatile struct inode *) inode)->i_wait;
-	if (inode->i_count)
+	if (--inode->i_count)
 		nr_free_inodes++;
 	memset(inode,0,sizeof(*inode));
 	((volatile struct inode *) inode)->i_wait = wait;

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