diff options
author | Darrick J. Wong <[email protected]> | 2022-10-26 14:16:36 -0700 |
---|---|---|
committer | Darrick J. Wong <[email protected]> | 2022-10-31 08:58:21 -0700 |
commit | f62ac3e0ac33d366fe81e194fee81de9be2cd886 (patch) | |
tree | 24f6eb1e62e928d76786f3f9a33bd146abc0d3cc /lib/memory-notifier-error-inject.c | |
parent | 68d0f389179a52555cfd8fa3254e4adcd7576904 (diff) |
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 <[email protected]>
Reviewed-by: Dave Chinner <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions