]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
bcache: fix mistaken comments in request.c
authorColy Li <colyli@suse.de>
Thu, 9 Aug 2018 07:48:47 +0000 (15:48 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 9 Aug 2018 14:21:10 +0000 (08:21 -0600)
This patch updates code comment in bch_keylist_realloc() by fixing
incorrected function names, to make the code to be more comprehennsible.

Signed-off-by: Coly Li <colyli@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/request.c

index 43af905920f54531b4df0ee7e836c3a3ab64f2f6..914d501ad1e07d1e100ebc02a7f7c12389e27601 100644 (file)
@@ -107,7 +107,7 @@ static int bch_keylist_realloc(struct keylist *l, unsigned u64s,
        /*
         * The journalling code doesn't handle the case where the keys to insert
         * is bigger than an empty write: If we just return -ENOMEM here,
-        * bio_insert() and bio_invalidate() will insert the keys created so far
+        * bch_data_insert_keys() will insert the keys created so far
         * and finish the rest when the keylist is empty.
         */
        if (newsize * sizeof(uint64_t) > block_bytes(c) - sizeof(struct jset))