patch-2.1.55 linux/fs/ext2/truncate.c

Next file: linux/fs/fat/dir.c
Previous file: linux/fs/ext2/ialloc.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.54/linux/fs/ext2/truncate.c linux/fs/ext2/truncate.c
@@ -347,7 +347,7 @@
 		retry |= trunc_tindirect (inode);
 		if (!retry)
 			break;
-		if (IS_SYNC(inode) && test_bit(I_DIRTY, &inode->i_state))
+		if (IS_SYNC(inode) && (inode->i_state & I_DIRTY))
 			ext2_sync_inode (inode);
 		current->counter = 0;
 		schedule ();

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