]> 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)
commitf584b68005ac782097d63a691740cb0dfed072ed
tree8ed4111a39c1fcbccee5a9df4b484bed8214b467
parentc185e494ae0ceb126d89b8e3413ed0a1132e05d3
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