mm/mempolicy: use a folio in do_mbind()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 29 Feb 2024 15:29:45 +0000 (15:29 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 6 Mar 2024 21:04:18 +0000 (13:04 -0800)
commitf1cce6f7fa302e2ea996de33eeeeb3a70d93a3e7
tree1a3ee4d4f15faa9a3be2d83f7e48573eb0484cf2
parentac96cc4d1ceda01d08deda1e45b9f1b55b0624d2
mm/mempolicy: use a folio in do_mbind()

We actually add folios to the pagelist already, but then work with them as
pages.  Removes a call to compound_head() in PageKsm() and removes a
reference to page->index.

Link: https://lkml.kernel.org/r/20240229153015.1996829-1-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Gregory Price <gregory.price@memverge.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/mempolicy.c