projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2e8dcf
)
bcache: add a comment in super.c
author
Coly Li
<colyli@suse.de>
Thu, 9 Aug 2018 07:48:45 +0000
(15:48 +0800)
committer
Jens Axboe
<axboe@kernel.dk>
Thu, 9 Aug 2018 14:21:07 +0000
(08:21 -0600)
This patch adds a line of code comment in super.c:register_bdev(), to
make code to be more comprehensible.
Signed-off-by: Coly Li <colyli@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/super.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/md/bcache/super.c
b/drivers/md/bcache/super.c
index c7ffa6ef3f8276a0c4d1d15644d1a43b35dcb9ef..1e85cbb4c159f5073d87f25cbde4f0c6e59574c6 100644
(file)
--- a/
drivers/md/bcache/super.c
+++ b/
drivers/md/bcache/super.c
@@
-1291,6
+1291,7
@@
static void register_bdev(struct cache_sb *sb, struct page *sb_page,
pr_info("registered backing device %s", dc->backing_dev_name);
list_add(&dc->list, &uncached_devices);
+ /* attach to a matched cache set if it exists */
list_for_each_entry(c, &bch_cache_sets, list)
bch_cached_dev_attach(dc, c, NULL);