Commit fabb4d49 authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: node scan: ignore multiple nodes with same seq if interior

Interior nodes are not really needed, when we have to scan - but if this
pops up for leaf nodes we'll need a real heuristic.
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 9fd5a48a
......@@ -302,6 +302,8 @@ static int handle_overwrites(struct bch_fs *c,
start->max_key = bpos_predecessor(n->min_key);
start->range_updated = true;
} else if (n->level) {
n->overwritten = true;
} else {
struct printbuf buf = PRINTBUF;
......
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