]> git.baikalelectronics.ru Git - kernel.git/commit
mm/mempolicy: Use vma_alloc_folio() in new_page()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 4 Apr 2022 19:23:39 +0000 (15:23 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 7 Apr 2022 13:43:41 +0000 (09:43 -0400)
commitec4858e07ed62eceb60bac2ded3c0d6e2471c66b
tree6aa822364b418a5f875d2f4904ec70720c547cd9
parentf584b68005ac782097d63a691740cb0dfed072ed
mm/mempolicy: Use vma_alloc_folio() in new_page()

Simplify new_page() by unifying the THP and base page cases, and
handle orders other than 0 and HPAGE_PMD_ORDER correctly.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Zi Yan <ziy@nvidia.com>
Reviewed-by: William Kucharski <william.kucharski@oracle.com>
mm/mempolicy.c