Commit d3c44cfd authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: delete old gen check bch2_alloc_write_key()

this was from metadata only gc - we don't need it anymore
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 75a53a0a
......@@ -907,9 +907,6 @@ static int bch2_alloc_write_key(struct btree_trans *trans,
bch2_dev_usage_update_m(c, ca, &old_gc, &gc);
percpu_up_read(&c->mark_lock);
if (gen_after(old->gen, gc.gen))
return 0;
if (fsck_err_on(new.data_type != gc.data_type, c,
alloc_key_data_type_wrong,
"bucket %llu:%llu gen %u has wrong data_type"
......
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