[PATCH 1/1] rpdfs: Fix initialization in rpdfs_btree_lookup_cb()

Chris Kirby <[email protected]> Tue, 24 Feb 2026 12:19:56 -0600
Newsgroups dev.linux.lists.rpdfs-devel
Message-ID <fe7caf90327c47f2de886d17728467adee39844c.1771954942.git.ckirby@versity.com>
Correctly initialize the rpdfs_btree_item_args in
rpdfs_btree_lookup_cb(). The code was initializing
b twice and c not at all.

Fix a typo.

Signed-off-by: Chris Kirby <[email protected]>
---
 fs/rpdfs/btree.c     | 2 +-
 fs/rpdfs/btree_txn.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/rpdfs/btree.c b/fs/rpdfs/btree.c
index 09d6302a7784..a043a864d451 100644
--- a/fs/rpdfs/btree.c
+++ b/fs/rpdfs/btree.c
@@ -694,7 +694,7 @@ int rpdfs_btree_lookup_cb(struct rpdfs_fs_info *rfi, struct rpdfs_btree_block *b
 	ind = find_key_ind(bt, key);
 	init_bti(&a, bt, ind);
 	init_bti(&b, bt, ind + 1);
-	init_bti(&b, bt, ind + 2);
+	init_bti(&c, bt, ind + 2);
 
 	return item_cb(rfi, &a, &b, &c, cb_arg);
 }
diff --git a/fs/rpdfs/btree_txn.c b/fs/rpdfs/btree_txn.c
index eedca731d689..dbd73fd4f2a4 100644
--- a/fs/rpdfs/btree_txn.c
+++ b/fs/rpdfs/btree_txn.c
@@ -460,7 +460,7 @@ int rpdfs_btree_txn_prepare_lookup(struct rpdfs_fs_info *rfi, struct rpdfs_trans
  * transaction.
  *
  * The caller's key can land after the last item in a leaf block so we
- * won't copy any items even though there are more item in the tree.  If
+ * won't copy any items even though there are more items in the tree.  If
  * this happens we'll advance the search key past the end of the first
  * leaf and try again, but only once.
  */
-- 
2.51.1