diff options
Diffstat (limited to 'fs/mpage.c')
-rw-r--r-- | fs/mpage.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/mpage.c b/fs/mpage.c index f1d2d02bd4c8..e431cb3878d6 100644 --- a/fs/mpage.c +++ b/fs/mpage.c | |||
@@ -184,7 +184,7 @@ do_mpage_readpage(struct bio *bio, struct page *page, unsigned nr_pages, | |||
184 | if (page_has_buffers(page)) | 184 | if (page_has_buffers(page)) |
185 | goto confused; | 185 | goto confused; |
186 | 186 | ||
187 | block_in_file = page->index << (PAGE_CACHE_SHIFT - blkbits); | 187 | block_in_file = (sector_t)page->index << (PAGE_CACHE_SHIFT - blkbits); |
188 | last_block = (i_size_read(inode) + blocksize - 1) >> blkbits; | 188 | last_block = (i_size_read(inode) + blocksize - 1) >> blkbits; |
189 | 189 | ||
190 | bh.b_page = page; | 190 | bh.b_page = page; |
@@ -466,7 +466,7 @@ __mpage_writepage(struct bio *bio, struct page *page, get_block_t get_block, | |||
466 | * The page has no buffers: map it to disk | 466 | * The page has no buffers: map it to disk |
467 | */ | 467 | */ |
468 | BUG_ON(!PageUptodate(page)); | 468 | BUG_ON(!PageUptodate(page)); |
469 | block_in_file = page->index << (PAGE_CACHE_SHIFT - blkbits); | 469 | block_in_file = (sector_t)page->index << (PAGE_CACHE_SHIFT - blkbits); |
470 | last_block = (i_size - 1) >> blkbits; | 470 | last_block = (i_size - 1) >> blkbits; |
471 | map_bh.b_page = page; | 471 | map_bh.b_page = page; |
472 | for (page_block = 0; page_block < blocks_per_page; ) { | 472 | for (page_block = 0; page_block < blocks_per_page; ) { |