mm/memcg: Convert mem_cgroup_swapout() to take a folio
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 28 Dec 2021 02:11:34 +0000 (21:11 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 17 Feb 2022 22:05:53 +0000 (17:05 -0500)
commitce0cfe53fd9749f6da96f8320481c26a7a72c4ce
treecbf3111714b67eab455efefda386221a4662ceec
parent34c836afa2963c603d5ddf25288b861077d303f5
mm/memcg: Convert mem_cgroup_swapout() to take a folio

This removes an assumption that THPs are the only kind of compound
pages and removes a couple of hidden calls to compound_head.  It
also documents that you can't pass a tail page to mem_cgroup_swapout().

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
include/linux/swap.h
mm/memcontrol.c
mm/vmscan.c