]> Git Repo - linux.git/commit
mm/page_alloc: add an array-based interface to the bulk page allocator
authorMel Gorman <[email protected]>
Fri, 30 Apr 2021 06:01:48 +0000 (23:01 -0700)
committerLinus Torvalds <[email protected]>
Fri, 30 Apr 2021 18:20:43 +0000 (11:20 -0700)
commit0f87d9d30f21390dd71114f30e63038980e6eb3f
treeaf3d4e1e8f488534cd51fb644ca15f805bfd4127
parent387ba26fb1cb9be9e35dc14a6d97188e916eda05
mm/page_alloc: add an array-based interface to the bulk page allocator

The proposed callers for the bulk allocator store pages from the bulk
allocator in an array.  This patch adds an array-based interface to the
API to avoid multiple list iterations.  The page list interface is
preserved to avoid requiring all users of the bulk API to allocate and
manage enough storage to store the pages.

[[email protected]: remove now unused local `allocated']

Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Mel Gorman <[email protected]>
Reviewed-by: Alexander Lobakin <[email protected]>
Acked-by: Vlastimil Babka <[email protected]>
Cc: Alexander Duyck <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: Chuck Lever <[email protected]>
Cc: David Miller <[email protected]>
Cc: Ilias Apalodimas <[email protected]>
Cc: Jesper Dangaard Brouer <[email protected]>
Cc: Matthew Wilcox (Oracle) <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/gfp.h
mm/page_alloc.c
This page took 0.057582 seconds and 4 git commands to generate.