Re: [PATCH RFC] statx.2: Add stx_atomic_write_unit_max_opt

From: Christoph Hellwig
Date: Fri Apr 04 2025 - 05:06:20 EST


On Thu, Apr 03, 2025 at 04:07:04PM +0100, John Garry wrote:
> So I am thinking one of these:
> a. stx_atomic_write_unit_max_dev
> b. stx_atomic_write_unit_max_bdev
> c. stx_atomic_write_unit_max_align
> d. stx_atomic_write_unit_max_hw
>
> The terms dev (or device) and bdev are already used in the meaning of some
> members in struct statx, so not too bad. However, when we support large
> atomic writes for XFS rtvol, the bdev atomic write limit and rtextsize
> would influence this value (so just bdev might be a bit misleading in the
> name).

Don't. Especially when you have a natively out of write file system
that optimized case will not involve the usual hardware offload.