mm/swap: Add folio_activate()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 27 Apr 2021 14:37:50 +0000 (10:37 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 18 Oct 2021 11:49:39 +0000 (07:49 -0400)
commitf2d273927ea49e2f85b660aeca26f58b8a15d385
tree88cb7c4c38e7a0b47641aaeefb7447396274fb49
parent35a020ba0802f732ba070e03e50b140aea4373c4
mm/swap: Add folio_activate()

This replaces activate_page() and eliminates lots of calls to
compound_head().  Saves net 118 bytes of kernel text.  There are still
some redundant calls to page_folio() here which will be removed when
pagevec_lru_move_fn() is converted to use folios.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Howells <dhowells@redhat.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
include/trace/events/pagemap.h
mm/swap.c