diff options
-rw-r--r-- | mm/truncate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/truncate.c b/mm/truncate.c index dc459014f777..232eb2736a79 100644 --- a/mm/truncate.c +++ b/mm/truncate.c | |||
@@ -269,7 +269,7 @@ void truncate_inode_pages_range(struct address_space *mapping, | |||
269 | index = start; | 269 | index = start; |
270 | continue; | 270 | continue; |
271 | } | 271 | } |
272 | if (pvec.pages[0]->index > end) { | 272 | if (index == start && pvec.pages[0]->index > end) { |
273 | pagevec_release(&pvec); | 273 | pagevec_release(&pvec); |
274 | break; | 274 | break; |
275 | } | 275 | } |