On Thu, Aug 24, 2017 at 09:01:44AM -0700, Christoph Hellwig wrote: > > We really need to do the same for ext2 and xfs. And we really should > be doing that in common VM code instead of the file system. See > my recent xfs synchronous page fault series on the mess the inconsistent > handling of the FAULT_FLAG_WRITE causes. I think we just need a new > FAULT_FLAG_ALLOC or similar for those page faults that needs to > allocate space instead of piling hacks over hacks, and make sure > it's only set over the method that will actually do the allocation, > as the DAX and non-DAX path are not consistent on that. Yeah, agreed, that's the cleaner way of doing that. It does mean we'll have sweep through all of the file systems so that they DTRT with this new FAULT_FLAG_ALLOC, though, right? - Ted