+48
−10
Loading
The new XFS_ERRTAG_FORCE_ZERO_RANGE error tag added by commit
ea9989668081 ("xfs: error tag to force zeroing on debug kernels") fails
to account for the zoned space reservation rules and this reliably fails
xfs/131 because the zeroing operation returns -EIO.
Fix this by reserving enough space to zero the entire range, which
requires a bit of (fairly ugly) reshuffling to do the error injection
early enough to affect the space reservation.
Fixes: ea9989668081 ("xfs: error tag to force zeroing on debug kernels")
Signed-off-by:
Christoph Hellwig <hch@lst.de>
Reviewed-by:
Brian Foster <bfoster@redhat.com>
Reviewed-by:
Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by:
Carlos Maiolino <cem@kernel.org>