On Thu, Jul 15, 2021 at 04:34:54AM +0100, Matthew Wilcox (Oracle) wrote: > If we know we have a folio, we can call folio_get() instead > of get_page() and save the overhead of calling compound_head(). > No change to generated code. > > Signed-off-by: Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx> > Reviewed-by: Zi Yan <ziy@xxxxxxxxxx> > Reviewed-by: Christoph Hellwig <hch@xxxxxx> > Acked-by: Jeff Layton <jlayton@xxxxxxxxxx> > Acked-by: Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx> > Acked-by: Vlastimil Babka <vbabka@xxxxxxx> > Reviewed-by: William Kucharski <william.kucharski@xxxxxxxxxx> > Reviewed-by: David Howells <dhowells@xxxxxxxxxx> > --- > include/linux/mm.h | 26 +++++++++++++++++--------- > 1 file changed, 17 insertions(+), 9 deletions(-) Acked-by: Mike Rapoport <rppt@xxxxxxxxxxxxx>