Commit 0cba2e71 authored by Coly Li's avatar Coly Li Committed by Jens Axboe

bcache: fix mistaken comments in request.c

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: default avatarColy Li <colyli@suse.de>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent cb329dec
...@@ -107,7 +107,7 @@ static int bch_keylist_realloc(struct keylist *l, unsigned u64s, ...@@ -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 * 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, * 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. * and finish the rest when the keylist is empty.
*/ */
if (newsize * sizeof(uint64_t) > block_bytes(c) - sizeof(struct jset)) if (newsize * sizeof(uint64_t) > block_bytes(c) - sizeof(struct jset))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment