]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Fix marking reflink pointers to missing indirect extents
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 7 Feb 2025 03:28:41 +0000 (22:28 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Fri, 7 Feb 2025 19:49:47 +0000 (14:49 -0500)
commit595170d4b660640289003d1881a9a6ef8ded6865
treeafd9da474f90066f465bfa32bef37ebff2129ed5
parent4be214c26936813b636eed2fac906f585ddbf0f9
bcachefs: Fix marking reflink pointers to missing indirect extents

reflink pointers to missing indirect extents aren't deleted, they just
have an error bit set - in case the indirect extent somehow reappears.

fsck/mark and sweep thus needs to ignore these errors.

Also, they can be marked AUTOFIX now.

Reported-by: Roland Vet <vet.roland@protonmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/reflink.c
fs/bcachefs/sb-errors_format.h