summaryrefslogtreecommitdiffstats
path: root/drivers/md/bcache/alloc.c
diff options
context:
space:
mode:
authorColy Li2017-10-14 01:35:30 +0200
committerJens Axboe2017-10-16 17:07:26 +0200
commitb1e8139e48b58e3bc1234e619c750ffd1394be2f (patch)
treef8c86b34dacb7591faeed28cba4042eb2c3cc35d /drivers/md/bcache/alloc.c
parentbcache: check ca->alloc_thread initialized before wake up it (diff)
downloadkernel-qcow2-linux-b1e8139e48b58e3bc1234e619c750ffd1394be2f.tar.gz
kernel-qcow2-linux-b1e8139e48b58e3bc1234e619c750ffd1394be2f.tar.xz
kernel-qcow2-linux-b1e8139e48b58e3bc1234e619c750ffd1394be2f.zip
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: Coly Li <colyli@suse.de> Reviewed-by: Tang Junhui <tang.junhui@zte.com.cn> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/bcache/alloc.c')
-rw-r--r--drivers/md/bcache/alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/bcache/alloc.c b/drivers/md/bcache/alloc.c
index e1a4205caa2e..4c40870e99f5 100644
--- a/drivers/md/bcache/alloc.c
+++ b/drivers/md/bcache/alloc.c
@@ -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
- * 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:
*/
if (KEY_PTRS(&alloc.key))