bcachefs: Add missing snapshots_seen_add_inorder()
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 21 Jul 2025 18:25:21 +0000 (14:25 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Fri, 25 Jul 2025 02:56:37 +0000 (22:56 -0400)
commitc37495fe3531647db4ae5787a80699ae1438d7cf
treee4256b1f21c5f1bdc92f9abf10ef8ef7c85e9ea0
parent1831840c2bc502c98c21df2ea0fa419b2ed0a6ec
bcachefs: Add missing snapshots_seen_add_inorder()

This fixes an infinite loop when repairing "extent past end of inode",
when the extent is an older snapshot than the inode that needs repair.

Without the snaphsots_seen_add_inorder() we keep trying to delete the
same extent, even though it's no longer visible in the inode's snapshot.

Fixes: 63d6e9311999 ("bcachefs: bch2_fpunch_snapshot()")
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/fsck.c