]> git.baikalelectronics.ru Git - kernel.git/commit
mm: Add vma_alloc_folio()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 4 Apr 2022 19:11:04 +0000 (15:11 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 7 Apr 2022 13:43:41 +0000 (09:43 -0400)
commit61c50bbaa45e5c61cabfa00e3641ded4c9696309
tree8ed4111a39c1fcbccee5a9df4b484bed8214b467
parent2f87802127669afe0fff5871d917fd91688c1bd7
mm: Add vma_alloc_folio()

This wrapper around alloc_pages_vma() calls prep_transhuge_page(),
removing the obligation from the caller.  This is in the same spirit
as __folio_alloc().

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