]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - mm/truncate.c
[MIPS] Fix BUG(), BUG_ON() handling
[karo-tx-linux.git] / mm / truncate.c
index ebf3fcb4115b8c664e54e4c47e02968ed93ab0be..0f4b6d18ab0ed663360e0fba11f46f23e8c6b5b3 100644 (file)
@@ -375,10 +375,10 @@ int invalidate_inode_pages2_range(struct address_space *mapping,
 
        pagevec_init(&pvec, 0);
        next = start;
-       while (next <= end && !ret && !wrapped &&
+       while (next <= end && !wrapped &&
                pagevec_lookup(&pvec, mapping, next,
                        min(end - next, (pgoff_t)PAGEVEC_SIZE - 1) + 1)) {
-               for (i = 0; !ret && i < pagevec_count(&pvec); i++) {
+               for (i = 0; i < pagevec_count(&pvec); i++) {
                        struct page *page = pvec.pages[i];
                        pgoff_t page_index;