fs: convert mpage_readpages to mpage_readahead
[sfrench/cifs-2.6.git] / fs / fat / inode.c
index 71946da8438849859b5240d199b216cf0b424f55..e6e68b2274a5cc5fbd3d4954cab5ee9f7f5d97fd 100644 (file)
@@ -210,10 +210,9 @@ static int fat_readpage(struct file *file, struct page *page)
        return mpage_readpage(page, fat_get_block);
 }
 
-static int fat_readpages(struct file *file, struct address_space *mapping,
-                        struct list_head *pages, unsigned nr_pages)
+static void fat_readahead(struct readahead_control *rac)
 {
-       return mpage_readpages(mapping, pages, nr_pages, fat_get_block);
+       mpage_readahead(rac, fat_get_block);
 }
 
 static void fat_write_failed(struct address_space *mapping, loff_t to)
@@ -344,7 +343,7 @@ int fat_block_truncate_page(struct inode *inode, loff_t from)
 
 static const struct address_space_operations fat_aops = {
        .readpage       = fat_readpage,
-       .readpages      = fat_readpages,
+       .readahead      = fat_readahead,
        .writepage      = fat_writepage,
        .writepages     = fat_writepages,
        .write_begin    = fat_write_begin,