]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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>
Sat, 14 Aug 2021 21:43:57 +0000 (17:43 -0400)
commitbc9438a8b97dc8a18eec853386bc248ec809148d
tree90f9911cfc31c8623377c548b612cd3d360d3e05
parent2dd8be4a9426d266dc21d37881383ab82d965a37
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