projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2903381
)
bcache: Set ra_pages based on backing device's ra_pages
author
Kent Overstreet
<koverstreet@google.com>
Wed, 27 Mar 2013 18:09:23 +0000
(11:09 -0700)
committer
Kent Overstreet
<koverstreet@google.com>
Sun, 21 Apr 2013 00:57:26 +0000
(17:57 -0700)
Signed-off-by: Kent Overstreet <koverstreet@google.com>
drivers/md/bcache/super.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/md/bcache/super.c
b/drivers/md/bcache/super.c
index f1e69f2fad37dcd219601b796ed5c46fb5385ef2..6817ea46cf0a3db40b25a4a1f80bdda93640fb9c 100644
(file)
--- 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,
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";