aboutsummaryrefslogtreecommitdiffstats
path: root/mm/truncate.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/truncate.c')
-rw-r--r--mm/truncate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/truncate.c b/mm/truncate.c
index ebf3fcb4115b..0f4b6d18ab0e 100644
--- a/mm/truncate.c
+++ b/mm/truncate.c
@@ -375,10 +375,10 @@ int invalidate_inode_pages2_range(struct address_space *mapping,
375 375
376 pagevec_init(&pvec, 0); 376 pagevec_init(&pvec, 0);
377 next = start; 377 next = start;
378 while (next <= end && !ret && !wrapped && 378 while (next <= end && !wrapped &&
379 pagevec_lookup(&pvec, mapping, next, 379 pagevec_lookup(&pvec, mapping, next,
380 min(end - next, (pgoff_t)PAGEVEC_SIZE - 1) + 1)) { 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 struct page *page = pvec.pages[i]; 382 struct page *page = pvec.pages[i];
383 pgoff_t page_index; 383 pgoff_t page_index;
384 384