diff options
Diffstat (limited to 'mm/truncate.c')
| -rw-r--r-- | mm/truncate.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/mm/truncate.c b/mm/truncate.c index e5cc39ab0751..6a78c814bebf 100644 --- a/mm/truncate.c +++ b/mm/truncate.c | |||
| @@ -484,14 +484,6 @@ unsigned long invalidate_mapping_pages(struct address_space *mapping, | |||
| 484 | unsigned long count = 0; | 484 | unsigned long count = 0; |
| 485 | int i; | 485 | int i; |
| 486 | 486 | ||
| 487 | /* | ||
| 488 | * Note: this function may get called on a shmem/tmpfs mapping: | ||
| 489 | * pagevec_lookup() might then return 0 prematurely (because it | ||
| 490 | * got a gangful of swap entries); but it's hardly worth worrying | ||
| 491 | * about - it can rarely have anything to free from such a mapping | ||
| 492 | * (most pages are dirty), and already skips over any difficulties. | ||
| 493 | */ | ||
| 494 | |||
| 495 | pagevec_init(&pvec, 0); | 487 | pagevec_init(&pvec, 0); |
| 496 | while (index <= end && pagevec_lookup_entries(&pvec, mapping, index, | 488 | while (index <= end && pagevec_lookup_entries(&pvec, mapping, index, |
| 497 | min(end - index, (pgoff_t)PAGEVEC_SIZE - 1) + 1, | 489 | min(end - index, (pgoff_t)PAGEVEC_SIZE - 1) + 1, |
