diff options
author | Kent Overstreet <koverstreet@google.com> | 2013-03-27 14:09:23 -0400 |
---|---|---|
committer | Kent Overstreet <koverstreet@google.com> | 2013-04-20 20:57:26 -0400 |
commit | 4f0fd955cd13bd94166099db7b31065479d884ed (patch) | |
tree | 3a0efbd4d5846911b97ffabfa5ffe352d3fd617d | |
parent | 2903381fce71004a7ce24d40fad53ba8236a3921 (diff) |
bcache: Set ra_pages based on backing device's ra_pages
Signed-off-by: Kent Overstreet <koverstreet@google.com>
-rw-r--r-- | drivers/md/bcache/super.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c index f1e69f2fad37..6817ea46cf0a 100644 --- a/drivers/md/bcache/super.c +++ b/drivers/md/bcache/super.c | |||
@@ -1067,6 +1067,10 @@ static const char *register_bdev(struct cache_sb *sb, struct page *sb_page, | |||
1067 | 1067 | ||
1068 | set_capacity(g, dc->bdev->bd_part->nr_sects - dc->sb.data_offset); | 1068 | set_capacity(g, dc->bdev->bd_part->nr_sects - dc->sb.data_offset); |
1069 | 1069 | ||
1070 | g->queue->backing_dev_info.ra_pages = | ||
1071 | max(g->queue->backing_dev_info.ra_pages, | ||
1072 | bdev->bd_queue->backing_dev_info.ra_pages); | ||
1073 | |||
1070 | bch_cached_dev_request_init(dc); | 1074 | bch_cached_dev_request_init(dc); |
1071 | 1075 | ||
1072 | err = "error creating kobject"; | 1076 | err = "error creating kobject"; |