diff options
Diffstat (limited to 'fs/mpage.c')
-rw-r--r-- | fs/mpage.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/mpage.c b/fs/mpage.c index c5adcdddf3cc..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; ) { |
@@ -721,7 +721,7 @@ retry: | |||
721 | &last_block_in_bio, &ret, wbc, | 721 | &last_block_in_bio, &ret, wbc, |
722 | page->mapping->a_ops->writepage); | 722 | page->mapping->a_ops->writepage); |
723 | } | 723 | } |
724 | if (unlikely(ret == WRITEPAGE_ACTIVATE)) | 724 | if (unlikely(ret == AOP_WRITEPAGE_ACTIVATE)) |
725 | unlock_page(page); | 725 | unlock_page(page); |
726 | if (ret || (--(wbc->nr_to_write) <= 0)) | 726 | if (ret || (--(wbc->nr_to_write) <= 0)) |
727 | done = 1; | 727 | done = 1; |