X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=mm%2Ftruncate.c;h=6a78c814bebfb151b1e490424c731edc172ad430;hb=042d27acb64924a0e8a43e972485913a32407beb;hp=e5cc39ab0751f08b30691c3e7e8c98e32ded409c;hpb=40e9963e622cf28ecef258e3dddb04457b65681c;p=deliverable%2Flinux.git 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, unsigned long count = 0; int i; - /* - * Note: this function may get called on a shmem/tmpfs mapping: - * pagevec_lookup() might then return 0 prematurely (because it - * got a gangful of swap entries); but it's hardly worth worrying - * about - it can rarely have anything to free from such a mapping - * (most pages are dirty), and already skips over any difficulties. - */ - pagevec_init(&pvec, 0); while (index <= end && pagevec_lookup_entries(&pvec, mapping, index, min(end - index, (pgoff_t)PAGEVEC_SIZE - 1) + 1,