aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColy Li <colyli@suse.de>2018-08-09 03:48:46 -0400
committerJens Axboe <axboe@kernel.dk>2018-08-09 10:21:09 -0400
commitcb329dec11822f84f9d7309766a1f3a35d3d182a (patch)
tree5709f0bc259de1732c350c11d952ec66294ce8fe
parente57fd746848597e9c701751e26416d4b2e3b27ea (diff)
bcache: fix mistaken code comments in bcache.h
This patch updates the code comment in struct cache with correct array names, to make the code to be more comprehensible. Signed-off-by: Coly Li <colyli@suse.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--drivers/md/bcache/bcache.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/md/bcache/bcache.h b/drivers/md/bcache/bcache.h
index 0a3e82b0876d..b393b3fd06b6 100644
--- a/drivers/md/bcache/bcache.h
+++ b/drivers/md/bcache/bcache.h
@@ -423,9 +423,9 @@ struct cache {
423 /* 423 /*
424 * When allocating new buckets, prio_write() gets first dibs - since we 424 * When allocating new buckets, prio_write() gets first dibs - since we
425 * may not be allocate at all without writing priorities and gens. 425 * may not be allocate at all without writing priorities and gens.
426 * prio_buckets[] contains the last buckets we wrote priorities to (so 426 * prio_last_buckets[] contains the last buckets we wrote priorities to
427 * gc can mark them as metadata), prio_next[] contains the buckets 427 * (so gc can mark them as metadata), prio_buckets[] contains the
428 * allocated for the next prio write. 428 * buckets allocated for the next prio write.
429 */ 429 */
430 uint64_t *prio_buckets; 430 uint64_t *prio_buckets;
431 uint64_t *prio_last_buckets; 431 uint64_t *prio_last_buckets;