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>
Mon, 27 Sep 2021 13:27:32 +0000 (09:27 -0400)
commitc5ce619a77ce00d537ef512e7a823c99ce890a40
tree07adb45b8d53353efcdee1782a41e3c76772e0b1
parent0de340cbed3359423e38ed49242ac9d6986b5cfd
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