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

Zhang Yi
2024-08-16T01:44:09Z

On 2024/8/15 14:00, Christoph Hellwig wrote:
> 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.
>

Yeah, this sounds like a good idea.

Thanks,
Yi.