Commit 8f507f89 authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: Fix check_pos_snapshot_overwritten()

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent e53a961c
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment