[PATCH 0/2] Addadd FALLOC_FL_WRITE_ZEROES support to xfs

Lukas Herbolt
2026-03-09T18:08:49Z

This is addtion of the FALLOC_FL_WRITE_ZEROES into the XFS.

As suggested this is split into two patches firts one introduce the
bmapi_flags for xfs_alloc_file_space. Second patch implements the
FALLOC_FL_WRITE_ZEROES doing it in two steps, first preallocates
and then converts it to zeroed. Sending first patch as v0 and second
as v11 to make the changes visible.

The first patch is just changes to
Doing the tho phase allocation t
Lukas Herbolt (2):
xfs: Introduce 'bmapi_flags' parameter to xfs_alloc_file_space()
xfs: add FALLOC_FL_WRITE_ZEROES to XFS code base

fs/xfs/xfs_bmap_util.c | 5 +++--
fs/xfs/xfs_bmap_util.h | 2 +-
fs/xfs/xfs_file.c | 47 ++++++++++++++++++++++++++++++------------
3 files changed, 38 insertions(+), 16 deletions(-)

--
2.53.0