[PATCH] VM: invalidate_inode_pages2_range() should not exit early

Fix invalidate_inode_pages2_range() so that it does not immediately exit
just because a single page in the specified range could not be removed.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by Trond Myklebust and committed by Linus Torvalds 7b965e08 5a39e8c6

+2 -2
+2 -2
mm/truncate.c
··· 375 375 376 376 pagevec_init(&pvec, 0); 377 377 next = start; 378 - while (next <= end && !ret && !wrapped && 378 + while (next <= end && !wrapped && 379 379 pagevec_lookup(&pvec, mapping, next, 380 380 min(end - next, (pgoff_t)PAGEVEC_SIZE - 1) + 1)) { 381 - for (i = 0; !ret && i < pagevec_count(&pvec); i++) { 381 + for (i = 0; i < pagevec_count(&pvec); i++) { 382 382 struct page *page = pvec.pages[i]; 383 383 pgoff_t page_index; 384 384