]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/workingset: Convert workingset_activation to take a folio
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 4 May 2021 21:19:13 +0000 (17:19 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Sat, 14 Aug 2021 04:35:20 +0000 (00:35 -0400)
commiteb515af21e31167aae0a75173e29a907340d4fad
tree48240794cc6eeb9c883f3c3bbbec6e27823a8e1f
parent9298104b2caabff724e84ca92960413ae39ad08b
mm/workingset: Convert workingset_activation to take a folio

This function already assumed it was being passed a head page.  No real
change here, except that thp_nr_pages() compiles away on kernels with
THP compiled out while folio_nr_pages() is always present.  Also convert
page_memcg_rcu() to folio_memcg_rcu().

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/linux/memcontrol.h
include/linux/swap.h
mm/swap.c
mm/workingset.c