[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-bcache
Subject: [PATCH] bcache: trivial - fix comment in bch_btree_keys_init
From: Shenghui Wang <shhuiw () foxmail ! com>
Date: 2018-08-12 13:38:56
Message-ID: 20180812133856.9561-1-shhuiw () foxmail ! com
[Download RAW message or body]
struct btree_keys has no ->keys[] member. It should be ->set[].
Fix the comment to ->set[0]->data
Signed-off-by: Shenghui Wang <shhuiw@foxmail.com>
---
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic