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>
Fri, 25 Feb 2022 14:10:23 +0000 (09:10 -0500)
commit1c760ad73a13dd79addb3fbd2acb6052a205281a
treec2793ff6f3f9589449e464eb638d3e2230572848
parent16c32677ba12577443c2c8e5e334022c94292dc9
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