mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 08:14:15 +08:00
bcachefs: Delete dead code
The interior btree node update path has changed, this is no longer needed. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
087c201943
commit
7b48920770
@ -1384,9 +1384,6 @@ void bch2_btree_insert_node(struct btree_update *as, struct btree *b,
|
||||
BUG_ON(!as || as->b);
|
||||
bch2_verify_keylist_sorted(keys);
|
||||
|
||||
if (as->must_rewrite)
|
||||
goto split;
|
||||
|
||||
bch2_btree_node_lock_for_insert(c, b, iter);
|
||||
|
||||
if (!bch2_btree_node_insert_fits(c, b, bch2_keylist_u64s(keys))) {
|
||||
|
@ -47,7 +47,6 @@ struct btree_update {
|
||||
BTREE_INTERIOR_UPDATING_AS,
|
||||
} mode;
|
||||
|
||||
unsigned must_rewrite:1;
|
||||
unsigned nodes_written:1;
|
||||
|
||||
enum btree_id btree_id;
|
||||
|
Loading…
Reference in New Issue
Block a user