diff --git a/block/blk-settings.c b/block/blk-settings.c index f5dbd7a0a43b3489d9344f7d55baf6825c848957..3b6599a32c06f40991bb820c303e551d11cdce84 100644 --- a/block/blk-settings.c +++ b/block/blk-settings.c @@ -724,6 +724,9 @@ void disk_stack_limits(struct gendisk *disk, struct block_device *bdev, printk(KERN_NOTICE "%s: Warning: Device %s is misaligned\n", top, bottom); } + + t->backing_dev_info->io_pages = + t->limits.max_sectors >> (PAGE_SHIFT - 9); } EXPORT_SYMBOL(disk_stack_limits);