patch-2.1.101 linux/fs/inode.c

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

diff -u --recursive --new-file v2.1.100/linux/fs/inode.c linux/fs/inode.c
@@ -8,6 +8,7 @@
 #include <linux/string.h>
 #include <linux/mm.h>
 #include <linux/dcache.h>
+#include <linux/quotaops.h>
 
 /*
  * New inode.c implementation.
@@ -190,6 +191,7 @@
 			continue;
 
 		sync_list(&sb->s_dirty);
+
 		if (dev)
 			break;
 	}
@@ -223,8 +225,8 @@
 	if (inode->i_nrpages)
 		truncate_inode_pages(inode, 0);
 	wait_on_inode(inode);
-	if (IS_WRITABLE(inode) && inode->i_sb && inode->i_sb->dq_op)
-		inode->i_sb->dq_op->drop(inode);
+	if (IS_QUOTAINIT(inode))
+		DQUOT_DROP(inode);
 	if (inode->i_sb && inode->i_sb->s_op && inode->i_sb->s_op->clear_inode)
 		inode->i_sb->s_op->clear_inode(inode);
 

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