Commit d3c44cfd authored by Kent Overstreet's avatar Kent Overstreet
Browse files

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
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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"