Commit b1e8139e authored by Coly Li's avatar Coly Li Committed by Jens Axboe

bcache: fix a comments typo in bch_alloc_sectors()

Code comments in alloc.c:bch_alloc_sectors() mentions a function
name find_data_bucket(), the correct function name should be
pick_data_bucket() indeed. bch_alloc_sectors() is a quite important
function in bcache allocation code, fixing the typo may help
other people to have less confusion.
Signed-off-by: default avatarColy Li <colyli@suse.de>
Reviewed-by: default avatarTang Junhui <tang.junhui@zte.com.cn>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 91af8300
...@@ -601,7 +601,7 @@ bool bch_alloc_sectors(struct cache_set *c, struct bkey *k, unsigned sectors, ...@@ -601,7 +601,7 @@ bool bch_alloc_sectors(struct cache_set *c, struct bkey *k, unsigned sectors,
/* /*
* If we had to allocate, we might race and not need to allocate the * If we had to allocate, we might race and not need to allocate the
* second time we call find_data_bucket(). If we allocated a bucket but * second time we call pick_data_bucket(). If we allocated a bucket but
* didn't use it, drop the refcount bch_bucket_alloc_set() took: * didn't use it, drop the refcount bch_bucket_alloc_set() took:
*/ */
if (KEY_PTRS(&alloc.key)) if (KEY_PTRS(&alloc.key))
......
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