vserver 1.9.3
[linux-2.6.git] / mm / truncate.c
index c9a30ae..0ab3a15 100644 (file)
@@ -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;