diff options
author | Jody McIntyre <scjody@modernduck.com> | 2005-11-28 17:46:32 -0500 |
---|---|---|
committer | Jody McIntyre <scjody@modernduck.com> | 2005-11-28 17:46:32 -0500 |
commit | a880b11a95fab4618da412d99fc7365d723e702d (patch) | |
tree | 10839a82741b7154067adfff425dadef3caf4163 /mm/truncate.c | |
parent | 899a1fc084ef3dcb57737d8847bf219cbf353ed3 (diff) | |
parent | 458af5439fe7ae7d95ca14106844e61f0795166c (diff) |
Merge with http://kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Diffstat (limited to 'mm/truncate.c')
-rw-r--r-- | mm/truncate.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mm/truncate.c b/mm/truncate.c index 29c18f68dc3..9173ab50060 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<<PAGE_CACHE_SHIFT, + (loff_t)(end - page_index + 1) << PAGE_CACHE_SHIFT, 0); did_range_unmap = 1; @@ -292,7 +292,7 @@ int invalidate_inode_pages2_range(struct address_space *mapping, * Just zap this page */ unmap_mapping_range(mapping, - page_index << PAGE_CACHE_SHIFT, + (loff_t)page_index<<PAGE_CACHE_SHIFT, PAGE_CACHE_SIZE, 0); } } |