linux-stable/fs/xfs/scrub
Darrick J. Wong f62ac3e0ac xfs: check record domain when accessing refcount records
Now that we've separated the startblock and CoW/shared extent domain in
the incore refcount record structure, check the domain whenever we
retrieve a record to ensure that it's still in the domain that we want.
Depending on the circumstances, a change in domain either means we're
done processing or that we've found a corruption and need to fail out.

The refcount check in xchk_xref_is_cow_staging is redundant since
_get_rec has done that for a long time now, so we can get rid of it.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
2022-10-31 08:58:21 -07:00
..
agheader.c
agheader_repair.c
alloc.c
attr.c
attr.h
bitmap.c
bitmap.h
bmap.c
btree.c
btree.h
common.c
common.h
dabtree.c
dabtree.h
dir.c
fscounters.c
health.c
health.h
ialloc.c
inode.c
parent.c
quota.c
refcount.c xfs: check record domain when accessing refcount records 2022-10-31 08:58:21 -07:00
repair.c
repair.h
rmap.c
rtbitmap.c
scrub.c
scrub.h
symlink.c
trace.c
trace.h
xfs_scrub.h