[PATCH] bcache: trivial - fix comment in bch_btree_keys_init

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



struct btree_keys has no ->keys[] member. It should be ->set[].
Fix the comment to ->set[0]->data

Signed-off-by: Shenghui Wang <shhuiw@xxxxxxxxxxx>
---
 drivers/md/bcache/bset.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/md/bcache/bset.c b/drivers/md/bcache/bset.c
index f3403b45bc28..0eaad45c6804 100644
--- a/drivers/md/bcache/bset.c
+++ b/drivers/md/bcache/bset.c
@@ -356,7 +356,7 @@ void bch_btree_keys_init(struct btree_keys *b, const struct btree_keys_ops *ops,
 	for (i = 0; i < MAX_BSETS; i++)
 		b->set[i].size = 0;
 	/*
-	 * Second loop starts at 1 because b->keys[0]->data is the memory we
+	 * Second loop starts at 1 because b->set[0]->data is the memory we
 	 * allocated
 	 */
 	for (i = 1; i < MAX_BSETS; i++)
-- 
2.18.0




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux ARM Kernel]     [Linux Filesystem Development]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux