]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Mon, 21 Mar 2022 16:59:01 +0000 (12:59 -0400)
commitac40bbfa1f015220b75bd11b1462caed28cad87f
treecb93690894085fa7db78b2cbc4ddc858fa247da3
parent1f4179e1603fa21cace6848844e4e49da1d9bbc6
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