xfs: allow COW forks on zoned file systems in xchk_bmap
authorChristoph Hellwig <hch@lst.de>
Fri, 10 May 2024 06:51:02 +0000 (08:51 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 3 Mar 2025 15:17:08 +0000 (08:17 -0700)
Zoned file systems can have COW forks even without reflinks.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
fs/xfs/scrub/bmap.c

index 66da7d4d56ba7401f490b8cb9e4ae3ff65a0e293..4f1e2574660d9a7d29913f4cfdb26f76b5b31e96 100644 (file)
@@ -1038,8 +1038,8 @@ xchk_bmap(
 
        switch (whichfork) {
        case XFS_COW_FORK:
-               /* No CoW forks on non-reflink filesystems. */
-               if (!xfs_has_reflink(mp)) {
+               /* No CoW forks filesystem doesn't support out of place writes */
+               if (!xfs_has_reflink(mp) && !xfs_has_zoned(mp)) {
                        xchk_ino_set_corrupt(sc, sc->ip->i_ino);
                        return 0;
                }