diff options
author | Jens Axboe <jens.axboe@oracle.com> | 2009-06-04 16:34:44 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2009-06-04 16:34:44 -0400 |
commit | 172124e220f1854acc99ee394671781b8b5e2120 (patch) | |
tree | d9b726679f55d39208bec73fef406433f438dd12 /fs/block_dev.c | |
parent | a05c0205ba031c01bba33a21bf0a35920eb64833 (diff) |
Revert "block: implement blkdev_readpages"
This reverts commit db2dbb12dc47a50c7a4c5678f526014063e486f6.
It apparently causes problems with partition table read-ahead
on archs with large page sizes. Until that problem is diagnosed
further, just drop the readpages support on block devices.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'fs/block_dev.c')
-rw-r--r-- | fs/block_dev.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/fs/block_dev.c b/fs/block_dev.c index a29b4dcc1bca..2dfc6cdcebbe 100644 --- a/fs/block_dev.c +++ b/fs/block_dev.c | |||
@@ -331,12 +331,6 @@ static int blkdev_readpage(struct file * file, struct page * page) | |||
331 | return block_read_full_page(page, blkdev_get_block); | 331 | return block_read_full_page(page, blkdev_get_block); |
332 | } | 332 | } |
333 | 333 | ||
334 | static int blkdev_readpages(struct file *file, struct address_space *mapping, | ||
335 | struct list_head *pages, unsigned nr_pages) | ||
336 | { | ||
337 | return mpage_readpages(mapping, pages, nr_pages, blkdev_get_block); | ||
338 | } | ||
339 | |||
340 | static int blkdev_write_begin(struct file *file, struct address_space *mapping, | 334 | static int blkdev_write_begin(struct file *file, struct address_space *mapping, |
341 | loff_t pos, unsigned len, unsigned flags, | 335 | loff_t pos, unsigned len, unsigned flags, |
342 | struct page **pagep, void **fsdata) | 336 | struct page **pagep, void **fsdata) |
@@ -1405,7 +1399,6 @@ static int blkdev_releasepage(struct page *page, gfp_t wait) | |||
1405 | 1399 | ||
1406 | static const struct address_space_operations def_blk_aops = { | 1400 | static const struct address_space_operations def_blk_aops = { |
1407 | .readpage = blkdev_readpage, | 1401 | .readpage = blkdev_readpage, |
1408 | .readpages = blkdev_readpages, | ||
1409 | .writepage = blkdev_writepage, | 1402 | .writepage = blkdev_writepage, |
1410 | .sync_page = block_sync_page, | 1403 | .sync_page = block_sync_page, |
1411 | .write_begin = blkdev_write_begin, | 1404 | .write_begin = blkdev_write_begin, |