Re: [RFC 3/4] fs/buffer: add folio_create_empty_buffers helper

From: Matthew Wilcox
Date: Fri Apr 14 2023 - 09:16:20 EST


On Fri, Apr 14, 2023 at 01:08:20PM +0200, Pankaj Raghav wrote:
> Folio version of create_empty_buffers(). This is required to convert
> create_page_buffers() to create_folio_buffers() later in the series.
>
> It removes several calls to compound_head() as it works directly on folio
> compared to create_empty_buffers().

Again, I would create a create_empty_buffers() wrapper, but this time I
would put it in buffer.c.