diff options
author | Darrick J. Wong <djwong@kernel.org> | 2022-10-26 14:16:36 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2022-10-31 08:58:21 -0700 |
commit | f62ac3e0ac33d366fe81e194fee81de9be2cd886 (patch) | |
tree | 24f6eb1e62e928d76786f3f9a33bd146abc0d3cc /fs/splice.c | |
parent | 68d0f389179a52555cfd8fa3254e4adcd7576904 (diff) | |
download | linux-stable-f62ac3e0ac33d366fe81e194fee81de9be2cd886.tar.gz linux-stable-f62ac3e0ac33d366fe81e194fee81de9be2cd886.tar.bz2 linux-stable-f62ac3e0ac33d366fe81e194fee81de9be2cd886.zip |
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>
Diffstat (limited to 'fs/splice.c')
0 files changed, 0 insertions, 0 deletions