summaryrefslogtreecommitdiff
path: root/libbcachefs/fsck.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2025-07-23 22:55:48 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2025-07-23 22:55:48 -0400
commitfa7be73f307a24ebf3a958ba389d33f43321293f (patch)
tree3493ddfb9a859d159e8641f32bd35055a55aeb23 /libbcachefs/fsck.c
parent5023292623e8f1dedc138a20daabbcc4772a0d86 (diff)
Update bcachefs sources to d90e3ac64900 bcachefs: live_child() no longer uses recursiondebug
Diffstat (limited to 'libbcachefs/fsck.c')
-rw-r--r--libbcachefs/fsck.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/libbcachefs/fsck.c b/libbcachefs/fsck.c
index 40fc3c4e..f5a9da40 100644
--- a/libbcachefs/fsck.c
+++ b/libbcachefs/fsck.c
@@ -1972,11 +1972,12 @@ static int check_extent(struct btree_trans *trans, struct btree_iter *iter,
"extent type past end of inode %llu:%u, i_size %llu\n%s",
i->inode.bi_inum, i->inode.bi_snapshot, i->inode.bi_size,
(bch2_bkey_val_to_text(&buf, c, k), buf.buf))) {
- ret = bch2_fpunch_snapshot(trans,
- SPOS(i->inode.bi_inum,
- last_block,
- i->inode.bi_snapshot),
- POS(i->inode.bi_inum, U64_MAX));
+ ret = snapshots_seen_add_inorder(c, s, i->inode.bi_snapshot) ?:
+ bch2_fpunch_snapshot(trans,
+ SPOS(i->inode.bi_inum,
+ last_block,
+ i->inode.bi_snapshot),
+ POS(i->inode.bi_inum, U64_MAX));
if (ret)
goto err;