mm/huge_memory: Convert __split_huge_pmd() to take a folio
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 21 Jan 2022 15:44:52 +0000 (10:44 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 21 Mar 2022 16:59:03 +0000 (12:59 -0400)
commitaf28a988b313a601c12c410a42e485ca46adcfee
tree2c5e610739fccb373154c4abdd1406de7330c127
parentb3ac04132c4b9bc5c9c14608424d410e7ca3b400
mm/huge_memory: Convert __split_huge_pmd() to take a folio

Convert split_huge_pmd_address() at the same time since it only passes
the folio through, and its two callers already have a folio on hand.
Removes numerous calls to compound_head() and removes an assumption
that a page cannot be larger than a PMD.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
include/linux/huge_mm.h
mm/huge_memory.c
mm/rmap.c