aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-08-30 20:34:22 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-08-30 20:34:22 -0700
commit65fe40ed5d023bcc66b499f1cb369322e11dc211 (patch)
tree316c60adbc6b019877e42c20d4717aa0d1b62184 /mm
parentc3dfa7121a1aa80eec3f9f662bd91ecc93310c9b (diff)
downloadhistory-65fe40ed5d023bcc66b499f1cb369322e11dc211.tar.gz
[PATCH] truncate_inode_pages latency fix
Fix scheduling latency issues with large truncates. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/truncate.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/truncate.c b/mm/truncate.c
index c9a30ae6206b2e..0ab3a157e985f4 100644
--- a/mm/truncate.c
+++ b/mm/truncate.c
@@ -155,6 +155,7 @@ void truncate_inode_pages(struct address_space *mapping, loff_t lstart)
next = start;
for ( ; ; ) {
+ cond_resched();
if (!pagevec_lookup(&pvec, mapping, next, PAGEVEC_SIZE)) {
if (next == start)
break;