Re: [PATCH RFC 5/5] ext4: Add fallocate2() support

From: Christoph Hellwig
Date: Wed Feb 26 2020 - 10:55:48 EST


On Wed, Feb 26, 2020 at 04:41:16PM +0300, Kirill Tkhai wrote:
> This adds a support of physical hint for fallocate2() syscall.
> In case of @physical argument is set for ext4_fallocate(),
> we try to allocate blocks only from [@phisical, @physical + len]
> range, while other blocks are not used.

Sorry, but this is a complete bullshit interface. Userspace has
absolutely no business even thinking of physical placement. If you
want to align allocations to physical block granularity boundaries
that is the file systems job, not the applications job.