diff options
author | 2022-11-06 17:03:21 -0800 | |
---|---|---|
committer | 2022-11-16 15:25:04 -0800 | |
commit | 31785537010a91a0d1dc403e5d049a38a3d4a30b (patch) | |
tree | 3f41c7cb7da4ed6e37ccb4bbb81891179adcd9b7 /fs/xfs/scrub | |
parent | xfs: check quota files for unwritten extents (diff) | |
download | linux-31785537010a91a0d1dc403e5d049a38a3d4a30b.tar.gz linux-31785537010a91a0d1dc403e5d049a38a3d4a30b.tar.bz2 linux-31785537010a91a0d1dc403e5d049a38a3d4a30b.zip |
xfs: check that CoW fork extents are not shared
Ensure that extents in an inode's CoW fork are not marked as shared in
the refcount btree.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/scrub')
-rw-r--r-- | fs/xfs/scrub/bmap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/scrub/bmap.c b/fs/xfs/scrub/bmap.c index fa8f22ed057a..4bb6672b02ba 100644 --- a/fs/xfs/scrub/bmap.c +++ b/fs/xfs/scrub/bmap.c @@ -335,6 +335,8 @@ xchk_bmap_iextent_xref( case XFS_COW_FORK: xchk_xref_is_cow_staging(info->sc, agbno, irec->br_blockcount); + xchk_xref_is_not_shared(info->sc, agbno, + irec->br_blockcount); break; } |