X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=mm%2Ftruncate.c;h=9173ab500604d904747f6f2681b9eb1305de7b42;hb=89a1623df6024e3093f6f3336466809d4f003fe7;hp=29c18f68dc35cd9b1cc17ee6e5f21bf05d3658e7;hpb=328198acb7407301ddf6005c0fa1e04bd0c539c8;p=linux-2.6 diff --git a/mm/truncate.c b/mm/truncate.c index 29c18f68dc..9173ab5006 100644 --- a/mm/truncate.c +++ b/mm/truncate.c @@ -282,8 +282,8 @@ int invalidate_inode_pages2_range(struct address_space *mapping, * Zap the rest of the file in one hit. */ unmap_mapping_range(mapping, - page_index << PAGE_CACHE_SHIFT, - (end - page_index + 1) + (loff_t)page_index<