bcachefs: Fix check_pos_snapshot_overwritten()
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 25 Jun 2023 03:20:39 +0000 (23:20 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:04 +0000 (17:10 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_update_leaf.c

index b42b83c55c5bf58ba24606e19f6fed54d72fe4fd..259e5e47d2a779454e114f23588e9927c0199257 100644 (file)
@@ -1218,7 +1218,6 @@ static inline int check_pos_snapshot_overwritten(struct btree_trans *trans,
                                          struct bpos pos)
 {
        if (!btree_type_has_snapshots(id) ||
-           pos.snapshot == U32_MAX ||
            !snapshot_t(trans->c, pos.snapshot)->children[0])
                return 0;