OSDN Git Service

bcache: fix mistaken code comments in bcache.h
authorColy Li <colyli@suse.de>
Thu, 9 Aug 2018 07:48:46 +0000 (15:48 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 9 Aug 2018 14:21:09 +0000 (08:21 -0600)
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>
drivers/md/bcache/bcache.h

index 0a3e82b..b393b3f 100644 (file)
@@ -423,9 +423,9 @@ struct cache {
        /*
         * When allocating new buckets, prio_write() gets first dibs - since we
         * may not be allocate at all without writing priorities and gens.
-        * prio_buckets[] contains the last buckets we wrote priorities to (so
-        * gc can mark them as metadata), prio_next[] contains the buckets
-        * allocated for the next prio write.
+        * prio_last_buckets[] contains the last buckets we wrote priorities to
+        * (so gc can mark them as metadata), prio_buckets[] contains the
+        * buckets allocated for the next prio write.
         */
        uint64_t                *prio_buckets;
        uint64_t                *prio_last_buckets;