On Tue, 9 Apr 2019 at 14:15, Christoph Hellwig <hch@xxxxxx> wrote: > On Mon, Apr 08, 2019 at 03:44:05PM +0200, Jan Kara wrote: > > > We won't be able to do a log flush while another transaction is > > > active, but that's what's needed to clean dirty pages. iomap doesn't > > > allow us to put the block allocation into a separate transaction from > > > the page writes; for that, the opposite to the page_done hook would > > > probably be needed. > > > > I agree that a ->page_prepare() hook would be probably the cleanest > > solution for this. > > That doesn't sound too bad to me. Okay, I'll see how the code for that will turn out. Thanks, Andreas