Re: [PATCH v12 31/33] mm/filemap: Add folio private_2 functions

From: Kirill A. Shutemov
Date: Mon Jun 28 2021 - 08:47:42 EST


On Tue, Jun 22, 2021 at 12:41:16PM +0100, Matthew Wilcox (Oracle) wrote:
> end_page_private_2() becomes folio_end_private_2(),
> wait_on_page_private_2() becomes folio_wait_private_2() and
> wait_on_page_private_2_killable() becomes folio_wait_private_2_killable().
>
> Adjust the fscache equivalents to call page_folio() before calling these
> functions to avoid adding wrappers. Ends up costing 1 byte of text
> in ceph & netfs, but the core shrinks by three calls to page_folio().
>
> Signed-off-by: Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx>
> Acked-by: Vlastimil Babka <vbabka@xxxxxxx>
> Reviewed-by: William Kucharski <william.kucharski@xxxxxxxxxx>
> Reviewed-by: Christoph Hellwig <hch@xxxxxx>
> Reviewed-by: David Howells <dhowells@xxxxxxxxxx>

Acked-by: Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx>

--
Kirill A. Shutemov