summaryrefslogtreecommitdiff
path: root/drivers/md/dm-table.c
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2019-02-05 16:48:09 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2019-02-05 16:48:08 -0800
commita45614f0a4cceeb2acb5cfd088dd23ea341aaa94 (patch)
treec5231c390cf5e2f911a6691ab9f07c3d52f47f0f /drivers/md/dm-table.c
parentb27a053258dbbb505147b429e716a08c74a26918 (diff)
parentdd21e159de67974e3de0791a7175edb4fb2ce7a1 (diff)
Merge "Merge android-4.4.172 (b3e9e81) into msm-4.4"
Diffstat (limited to 'drivers/md/dm-table.c')
-rw-r--r--drivers/md/dm-table.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c
index 48b09dedd0fb..52f261381b0c 100644
--- a/drivers/md/dm-table.c
+++ b/drivers/md/dm-table.c
@@ -1542,6 +1542,9 @@ void dm_table_set_restrictions(struct dm_table *t, struct request_queue *q,
smp_mb();
if (dm_table_request_based(t))
queue_flag_set_unlocked(QUEUE_FLAG_STACKABLE, q);
+
+ /* io_pages is used for readahead */
+ q->backing_dev_info->io_pages = limits->max_sectors >> (PAGE_SHIFT - 9);
}
unsigned int dm_table_get_num_targets(struct dm_table *t)