RE: [PATCH v2 2/9] ext2: tell DAX the size of allocation holes

From: Matthew Wilcox
Date: Sat Sep 10 2016 - 20:42:51 EST

From: Theodore Ts'o [mailto:tytso@xxxxxxx]
> On Sat, Sep 10, 2016 at 12:31:51AM -0700, Christoph Hellwig wrote:
> > I've mentioned this before, but I'd like to repeat it. With all the
> > work reqwuired in the file system I would prefer to drop DAX support
> > in ext2 (and if people really cry for it reinstate the trivial old xip
> > support).
> Why is so much work required to support the new DAX interfaces in
> ext2? Is that unique to ext2, or is adding DAX support just going to
> be painful for all file systems? Hopefully it's not the latter,
> right?

It's always been my goal to make supporting DAX as easy as possible
for the filesystem. Hence the sharing of the DIO locking, and the (it
turned out) premature reliance on helper functions. It's more complex
than I wanted it to be right now, and I hope we get to simplify it again.