]> www.infradead.org Git - users/hch/xfs.git/commitdiff
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>
Tue, 5 Nov 2024 08:29:52 +0000 (09:29 +0100)
zoned file systems can have COW forks even without reflinks.

Signed-off-by: Christoph Hellwig <hch@lst.de>
fs/xfs/scrub/bmap.c

index 7631bcbe3ecf0bd8dc7e363aa725c03642c62aeb..3430542c02411efabb9bd37f9168434b6f1eba70 100644 (file)
@@ -1039,7 +1039,7 @@ xchk_bmap(
        switch (whichfork) {
        case XFS_COW_FORK:
                /* No CoW forks on non-reflink filesystems. */
-               if (!xfs_has_reflink(mp)) {
+               if (!xfs_has_reflink(mp) && !xfs_has_zoned(mp)) {
                        xchk_ino_set_corrupt(sc, sc->ip->i_ino);
                        return 0;
                }