mm: Support arbitrary THP sizes
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Sat, 30 May 2020 00:54:38 +0000 (20:54 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 1 Mar 2022 02:01:35 +0000 (21:01 -0500)
commit60ed272758516639d21d75aba0c807322920f53f
treec151584da515b12c1b93cc558d6fcced4bf4c7cd
parent0b9633b90a080100e57c453a551fe98a16431d1e
mm: Support arbitrary THP sizes

For code which has not yet been converted from THP to folios, use the
compound size of the page instead of assuming PTE or PMD size.

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