mm/workingset: Convert workingset_refault() to take a folio
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 29 Apr 2021 14:27:16 +0000 (10:27 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 18 Oct 2021 11:49:40 +0000 (07:49 -0400)
commit0995d7e568141226f10f8216aa4965e06ab5db8a
treecc377f799c48bc95a3a097cb3825bf28c76a13a0
parent9bf70167e3c61473b95f40771decc3778bf0fb9f
mm/workingset: Convert workingset_refault() to take a folio

This nets us 178 bytes of savings from removing calls to compound_head.
The three callers all grow a little, but each of them will be converted
to use folios soon, so that's fine.

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/swap.h
include/linux/vmstat.h
mm/filemap.c
mm/memory.c
mm/swap.c
mm/swap_state.c
mm/workingset.c