kernel-hacking-2024-linux-s.../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 xfs: Pre-calculate per-AG agino geometry 2022-07-07 19:13:10 +10:00
agheader_repair.c xfs: replace xfs_ag_block_count() with perag accesses 2022-07-07 19:13:17 +10:00
alloc.c xfs: create a predicate to verify per-AG extents 2022-10-31 08:58:20 -07:00
attr.c
attr.h
bitmap.c
bitmap.h
bmap.c xfs: convert XFS_IFORK_PTR to a static inline helper 2022-07-09 15:17:21 -07:00
btree.c xfs: replace XFS_IFORK_Q with a proper predicate function 2022-07-12 11:17:27 -07:00
btree.h
common.c xfs: pass perag to xfs_alloc_read_agfl 2022-07-07 19:08:15 +10:00
common.h
dabtree.c xfs: convert XFS_IFORK_PTR to a static inline helper 2022-07-09 15:17:21 -07:00
dabtree.h
dir.c xfs: changes for 6.1-rc1 2022-10-10 20:32:10 -07:00
fscounters.c xfs: pass perag to xfs_alloc_read_agf() 2022-07-07 19:07:40 +10:00
health.c xfs: make is_log_ag() a first class helper 2022-07-07 19:13:21 +10:00
health.h
ialloc.c xfs: create a predicate to verify per-AG extents 2022-10-31 08:58:20 -07:00
inode.c xfs: Introduce xfs_dfork_nextents() helper 2022-04-11 04:11:18 +00:00
parent.c Change calling conventions for filldir_t 2022-08-17 17:25:04 -04:00
quota.c xfs: convert XFS_IFORK_PTR to a static inline helper 2022-07-09 15:17:21 -07:00
refcount.c xfs: check record domain when accessing refcount records 2022-10-31 08:58:21 -07:00
repair.c xfs: fix for variable set but not used warning 2022-07-20 16:40:39 -07:00
repair.h
rmap.c xfs: Pre-calculate per-AG agbno geometry 2022-07-07 19:13:02 +10:00
rtbitmap.c xfs: pass explicit mount pointer to rtalloc query functions 2022-04-12 06:49:41 +10:00
scrub.c xfs: implement per-mount warnings for scrub and shrink usage 2022-05-27 10:31:34 +10:00
scrub.h
symlink.c xfs: replace inode fork size macros with functions 2022-07-12 11:17:27 -07:00
trace.c
trace.h
xfs_scrub.h