From: Kent Overstreet Date: Sun, 25 Jun 2023 03:20:39 +0000 (-0400) Subject: bcachefs: Fix check_pos_snapshot_overwritten() X-Git-Tag: io_uring-6.7-2023-11-10~119^2~249 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=8f507f89b8b87d2ee4adc990b96388001444967e;p=linux-block.git bcachefs: Fix check_pos_snapshot_overwritten() Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/btree_update_leaf.c b/fs/bcachefs/btree_update_leaf.c index b42b83c55c5b..259e5e47d2a7 100644 --- a/fs/bcachefs/btree_update_leaf.c +++ b/fs/bcachefs/btree_update_leaf.c @@ -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;