patch-2.3.2 linux/fs/ext2/truncate.c
Next file: linux/fs/fat/cache.c
Previous file: linux/fs/efs/symlink.c
Back to the patch index
Back to the overall index
-  Lines: 12
-  Date:
Thu May 13 17:34:51 1999
-  Orig file: 
v2.3.1/linux/fs/ext2/truncate.c
-  Orig date: 
Mon Oct  5 10:04:34 1998
diff -u --recursive --new-file v2.3.1/linux/fs/ext2/truncate.c linux/fs/ext2/truncate.c
@@ -407,8 +407,9 @@
 			break;
 		if (IS_SYNC(inode) && (inode->i_state & I_DIRTY))
 			ext2_sync_inode (inode);
-		current->counter = 0;
-		schedule ();
+		run_task_queue(&tq_disk);
+		current->policy |= SCHED_YIELD;
+		schedule();
 	}
 	/*
 	 * If the file is not being truncated to a block boundary, the
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)