diff options
author | Darrick J. Wong <djwong@kernel.org> | 2022-08-02 10:52:44 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2022-10-14 14:16:28 -0700 |
commit | 297bd49335d51d76efee00f2f5db4f35f4a45970 (patch) | |
tree | cfd5804ff1c3c6c409d37c58d249812344203c3d | |
parent | cb10a8cc2cf30599a3efcea2abb52cdaa7d37741 (diff) |
xfs: teach scrub to flag non-extents format cow forksscrub-bmap-enhancements_2022-10-14
CoW forks only exist in memory, which means that they can only ever have
an incore extent tree. Hence they must always be FMT_EXTENTS, so check
this when we're scrubbing them.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
-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 c3dd231eea1c..5c4b25585b8c 100644 --- a/fs/xfs/scrub/bmap.c +++ b/fs/xfs/scrub/bmap.c @@ -751,6 +751,8 @@ xchk_bmap( case XFS_DINODE_FMT_DEV: case XFS_DINODE_FMT_LOCAL: /* No mappings to check. */ + if (whichfork == XFS_COW_FORK) + xchk_fblock_set_corrupt(sc, whichfork, 0); goto out; case XFS_DINODE_FMT_EXTENTS: break; |