Re: [PATCH v2 3/6] iomap: advance the ifs allocation if we have more than one blocks per folio

Christoph Hellwig
2024-08-15T06:00:23Z

On Wed, Aug 14, 2024 at 03:08:25PM +0800, Zhang Yi wrote:
> > iomap_invalidate_folio when it actually is needed?
> >
>
> Therefore, you mean current strategy of allocating ifs is to try to delay
> the allocation time as much as possible?

Yes.

> The advantage is that it could
> avoid some unnecessary allocation operations if the whole folio are
> invalidated before write back. right?

Yes. And hopefully we can also get to the point where we don't need
to actually allocate it for writeback. I've been wanting to do that
for a while but never got it.