diff options
author | Andrew Morton <akpm@osdl.org> | 2004-08-30 20:34:22 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-08-30 20:34:22 -0700 |
commit | 65fe40ed5d023bcc66b499f1cb369322e11dc211 (patch) | |
tree | 316c60adbc6b019877e42c20d4717aa0d1b62184 /mm | |
parent | c3dfa7121a1aa80eec3f9f662bd91ecc93310c9b (diff) | |
download | history-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.c | 1 |
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; |