diff options
| author | Christoph Hellwig <hch@lst.de> | 2025-12-15 07:05:46 +0100 |
|---|---|---|
| committer | Carlos Maiolino <cem@kernel.org> | 2025-12-16 09:21:38 +0100 |
| commit | 8dc15b7a6e5918bad2b0583cf63d170f94a212df (patch) | |
| tree | c306bbb81c987bc237b4ade15f4ccd51abb9bc7c /lib/clz_tab.c | |
| parent | fc40459de82543b565ebc839dca8f7987f16f62e (diff) | |
xfs: fix XFS_ERRTAG_FORCE_ZERO_RANGE for zoned file system
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>
Diffstat (limited to 'lib/clz_tab.c')
0 files changed, 0 insertions, 0 deletions
