aio: fix local replay

side effect / regression from 814b92ba19
This commit is contained in:
Thomas Schoebel-Theuer 2013-04-25 14:19:32 +02:00
parent 46f815f54e
commit c411a6f243
1 changed files with 2 additions and 0 deletions

View File

@ -167,6 +167,8 @@ struct mapfree_info *mapfree_get(const char *name, int flags)
mapping_set_gfp_mask(mapping, mapping_gfp_mask(mapping) & ~(__GFP_IO | __GFP_FS));
mf->mf_max = i_size_read(inode);
if (S_ISBLK(inode->i_mode)) {
MARS_INF("changing blkdev readahead from %lu to %d\n", inode->i_bdev->bd_disk->queue->backing_dev_info.ra_pages, ra);
inode->i_bdev->bd_disk->queue->backing_dev_info.ra_pages = ra;