Re: [PATCH 00/10] fallocate: introduce FALLOC_FL_WRITE_ZEROES flag

From: Christian Brauner
Date: Mon Jun 16 2025 - 10:31:52 EST


On Mon, Jun 09, 2025 at 09:47:13PM -0400, Martin K. Petersen wrote:
>
> Zhang,
>
> > Changes since RFC v4:
> > - Rebase codes on 6.16-rc1.
> > - Add a new queue_limit flag, and change the write_zeroes_unmap sysfs
> > interface to RW mode. User can disable the unmap write zeroes
> > operation by writing '0' to it when the operation is slow.
> > - Modify the documentation of write_zeroes_unmap sysfs interface as
> > Martin suggested.
> > - Remove the statx interface.
> > - Make the bdev and ext4 don't allow to submit FALLOC_FL_WRITE_ZEROES
> > if the block device does not enable the unmap write zeroes operation,
> > it should return -EOPNOTSUPP.
>
> This looks OK to me as long as the fs folks agree on the fallocate()
> semantics.

That looks overall fine. Should I queue this up in the vfs tree?