mm/filemap: Support VM_HUGEPAGE for file mappings
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Sun, 25 Jul 2021 03:37:13 +0000 (23:37 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 1 Mar 2022 02:01:36 +0000 (21:01 -0500)
commit3431f637269389b0f0e9c4ca375f66705320478c
tree6f501bf4408a275031513b5d426e0df9de7bface
parent1fb129cd915ee593d26384f99cb7ecefa6a7d4f0
mm/filemap: Support VM_HUGEPAGE for file mappings

If the VM_HUGEPAGE flag is set, attempt to allocate PMD-sized folios
during readahead, even if we have no history of readahead being
successful.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
mm/filemap.c