Commit 5935bf33 authored by Alan Huang's avatar Alan Huang Committed by Kent Overstreet

bcachefs: Remove unused parameter

iter here is unused, remove it.
Signed-off-by: default avatarAlan Huang <mmpgouride@gmail.com>
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 3130303b
...@@ -969,7 +969,6 @@ static void bch2_bset_fix_lookup_table(struct btree *b, ...@@ -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)
......
...@@ -270,8 +270,8 @@ void bch2_bset_init_first(struct btree *, struct bset *); ...@@ -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 */
......
...@@ -214,7 +214,7 @@ bool bch2_btree_bset_insert_key(struct btree_trans *trans, ...@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment