From b5f6ab74092978d24a942cdab236086ebf435ef2 Mon Sep 17 00:00:00 2001 From: Jeff Moyer Date: Wed, 22 Apr 2009 14:08:13 +0200 Subject: [PATCH] --- yaml --- r: 146969 b: refs/heads/master c: db2dbb12dc47a50c7a4c5678f526014063e486f6 h: refs/heads/master i: 146967: 7ca1ef0780edcc4bdb64ba10a79235d6dd049ed6 v: v3 --- [refs] | 2 +- trunk/fs/block_dev.c | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 07ba31ce52f9..dd46391efcaf 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: db29a6b49674085f136331014ba0eee249c16a2c +refs/heads/master: db2dbb12dc47a50c7a4c5678f526014063e486f6 diff --git a/trunk/fs/block_dev.c b/trunk/fs/block_dev.c index f45dbc18dd17..a85fe310fc6f 100644 --- a/trunk/fs/block_dev.c +++ b/trunk/fs/block_dev.c @@ -331,6 +331,12 @@ static int blkdev_readpage(struct file * file, struct page * page) return block_read_full_page(page, blkdev_get_block); } +static int blkdev_readpages(struct file *file, struct address_space *mapping, + struct list_head *pages, unsigned nr_pages) +{ + return mpage_readpages(mapping, pages, nr_pages, blkdev_get_block); +} + static int blkdev_write_begin(struct file *file, struct address_space *mapping, loff_t pos, unsigned len, unsigned flags, struct page **pagep, void **fsdata) @@ -1399,6 +1405,7 @@ static int blkdev_releasepage(struct page *page, gfp_t wait) static const struct address_space_operations def_blk_aops = { .readpage = blkdev_readpage, + .readpages = blkdev_readpages, .writepage = blkdev_writepage, .sync_page = block_sync_page, .write_begin = blkdev_write_begin,