bcachefs: Remove unused parameter

iter here is unused, remove it.

Signed-off-by: Alan Huang <mmpgouride@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Alan Huang 2024-08-14 22:20:07 +08:00 committed by Kent Overstreet
parent 3130303bd9
commit 5935bf3341
3 changed files with 3 additions and 4 deletions

View File

@ -969,7 +969,6 @@ static void bch2_bset_fix_lookup_table(struct btree *b,
} }
void bch2_bset_insert(struct btree *b, void bch2_bset_insert(struct btree *b,
struct btree_node_iter *iter,
struct bkey_packed *where, struct bkey_packed *where,
struct bkey_i *insert, struct bkey_i *insert,
unsigned clobber_u64s) unsigned clobber_u64s)

View File

@ -270,8 +270,8 @@ void bch2_bset_init_first(struct btree *, struct bset *);
void bch2_bset_init_next(struct btree *, struct btree_node_entry *); void bch2_bset_init_next(struct btree *, struct btree_node_entry *);
void bch2_bset_build_aux_tree(struct btree *, struct bset_tree *, bool); void bch2_bset_build_aux_tree(struct btree *, struct bset_tree *, bool);
void bch2_bset_insert(struct btree *, struct btree_node_iter *, void bch2_bset_insert(struct btree *, struct bkey_packed *, struct bkey_i *,
struct bkey_packed *, struct bkey_i *, unsigned); unsigned);
void bch2_bset_delete(struct btree *, struct bkey_packed *, unsigned); void bch2_bset_delete(struct btree *, struct bkey_packed *, unsigned);
/* Bkey utility code */ /* Bkey utility code */

View File

@ -214,7 +214,7 @@ bool bch2_btree_bset_insert_key(struct btree_trans *trans,
k = bch2_btree_node_iter_bset_pos(node_iter, b, bset_tree_last(b)); k = bch2_btree_node_iter_bset_pos(node_iter, b, bset_tree_last(b));
overwrite: overwrite:
bch2_bset_insert(b, node_iter, k, insert, clobber_u64s); bch2_bset_insert(b, k, insert, clobber_u64s);
new_u64s = k->u64s; new_u64s = k->u64s;
fix_iter: fix_iter:
if (clobber_u64s != new_u64s) if (clobber_u64s != new_u64s)