diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-04-30 07:41:42 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-05-09 00:29:21 +0300 |
commit | d3c44cfd5e98605f707a8eaaa096c0d17b2211fb (patch) | |
tree | ab29481efe4e684a00a8621b4b70a8ead4d837d6 | |
parent | 75a53a0a230529425fa27bdfd5b7d9f95736488e (diff) | |
download | linux-d3c44cfd5e98605f707a8eaaa096c0d17b2211fb.tar.xz |
bcachefs: delete old gen check bch2_alloc_write_key()
this was from metadata only gc - we don't need it anymore
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r-- | fs/bcachefs/btree_gc.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/bcachefs/btree_gc.c b/fs/bcachefs/btree_gc.c index 9694ffb0b098..c9dfcf3cd199 100644 --- a/fs/bcachefs/btree_gc.c +++ b/fs/bcachefs/btree_gc.c @@ -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" |