[PATCH] 32bit integer overflow in invalidate_inode_pages2()

Fix a 32 bit integer overflow in invalidate_inode_pages2_range.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Oleg Drokin and committed by Linus Torvalds 479ef592 02b70682

+3 -3
+3 -3
mm/truncate.c
··· 282 * Zap the rest of the file in one hit. 283 */ 284 unmap_mapping_range(mapping, 285 - page_index << PAGE_CACHE_SHIFT, 286 - (end - page_index + 1) 287 << PAGE_CACHE_SHIFT, 288 0); 289 did_range_unmap = 1; ··· 292 * Just zap this page 293 */ 294 unmap_mapping_range(mapping, 295 - page_index << PAGE_CACHE_SHIFT, 296 PAGE_CACHE_SIZE, 0); 297 } 298 }
··· 282 * Zap the rest of the file in one hit. 283 */ 284 unmap_mapping_range(mapping, 285 + (loff_t)page_index<<PAGE_CACHE_SHIFT, 286 + (loff_t)(end - page_index + 1) 287 << PAGE_CACHE_SHIFT, 288 0); 289 did_range_unmap = 1; ··· 292 * Just zap this page 293 */ 294 unmap_mapping_range(mapping, 295 + (loff_t)page_index<<PAGE_CACHE_SHIFT, 296 PAGE_CACHE_SIZE, 0); 297 } 298 }