forked from luck/tmp_suning_uos_patched
bcache: Set ra_pages based on backing device's ra_pages
Signed-off-by: Kent Overstreet <koverstreet@google.com>
This commit is contained in:
parent
2903381fce
commit
4f0fd955cd
@ -1067,6 +1067,10 @@ static const char *register_bdev(struct cache_sb *sb, struct page *sb_page,
|
||||
|
||||
set_capacity(g, dc->bdev->bd_part->nr_sects - dc->sb.data_offset);
|
||||
|
||||
g->queue->backing_dev_info.ra_pages =
|
||||
max(g->queue->backing_dev_info.ra_pages,
|
||||
bdev->bd_queue->backing_dev_info.ra_pages);
|
||||
|
||||
bch_cached_dev_request_init(dc);
|
||||
|
||||
err = "error creating kobject";
|
||||
|
Loading…
Reference in New Issue
Block a user