On Tue, Dec 12, 2023 at 10:16:13AM -0500, Theodore Ts'o wrote: > On Tue, Dec 12, 2023 at 05:10:42AM -0800, Christoph Hellwig wrote: > > On Tue, Dec 12, 2023 at 07:46:51AM +0000, John Garry wrote: > > > It is assumed that the user will fallocate/dd the complete file before > > > issuing atomic writes, and we will have extent alignment and length as > > > required. > > > > I don't think that's a long time maintainable usage model. > > For databases that are trying to use this to significantly improve > their performance by eliminating double writes, the allocation and > writes are being done by a single process. So for *that* use case, it > is quite maintainable. That's not the freaking point. We need to have proper kernel interfaces that don't rely on intimate knowledge and control of details. We need to build proper genral purpose interfaces and not layer hacks on top of hacks.