summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-06-24 23:20:39 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-06-24 23:22:14 -0400
commitd2db5502ce46cc761a04440ad8ea1b16f728c156 (patch)
treee98166ac0d3fe5876c6c5206b2933848f92ab0c1
parentcf1d3a06c2625f6e8474c57f202be6fb77138bf4 (diff)
bcachefs: Fix check_pos_snapshot_overwritten()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r--fs/bcachefs/btree_update_leaf.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/bcachefs/btree_update_leaf.c b/fs/bcachefs/btree_update_leaf.c
index 9b3280c9d2d9..8976a21f0cb6 100644
--- a/fs/bcachefs/btree_update_leaf.c
+++ b/fs/bcachefs/btree_update_leaf.c
@@ -1216,7 +1216,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;