mm: Add folio_test_pmd_mappable()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Sun, 28 Nov 2021 19:24:43 +0000 (14:24 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 4 Jan 2022 18:15:33 +0000 (13:15 -0500)
commit5bf34d7c7ffe773c3b3c1b6ebf39e0f34a2436ec
treecb9a87d4622bf533a274b38e7b321c96f4b9f45f
parent821979f5098b05dd1cc83075369304ed65dfef4e
mm: Add folio_test_pmd_mappable()

Add a predicate to determine if the folio might be mapped by a PMD entry.
If CONFIG_TRANSPARENT_HUGEPAGE is disabled, we know it can't be, even
if it's large enough.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: William Kucharski <william.kucharski@oracle.com>
include/linux/huge_mm.h
include/linux/mm.h