mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 11:06:41 -05:00
xfs: allow COW forks on zoned file systems in xchk_bmap
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>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user