mm-page_alloc-add-an-array-based-interface-to-the-bulk-page-allocator.patch removed from -mm tree
The patch titled
Subject: mm/page_alloc: add an array-based interface to the bulk page allocator
has been removed from the -mm tree. Its filename was
mm-page_alloc-add-an-array-based-interface-to-the-bulk-page-allocator.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Mel Gorman <[email protected]>
Subject: 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.
---
include/linux/gfp.h | 13 +++++++-- mm/page_alloc.c | 60 ++++++++++++++++++++++++++++++------------ 2 files changed, 54 insertions(+), 19 deletions(-)
include/linux/gfp.h renamed from include/linux/gfp.h~mm-page_alloc-add-an-array-based-interface-to-the-bulk-page-allocator +10 -3
@@ -520,13 +520,20 @@ struct page *__alloc_pages(gfp_t gfp, ununsigned long __alloc_pages_bulk (gfp_t gfp,int preferred_nid,nodemask_t *nodemask,int nr_pages, -struct list_head *list); +struct list_head *page_list, +struct page **page_array);/* Bulk allocate order-0 pages */ static inline unsigned long -alloc_pages_bulk (gfp_t gfp,unsigned long nr_pages,struct list_head *list) +alloc_pages_bulk_list (gfp_t gfp,unsigned long nr_pages,struct list_head *list) { -return __alloc_pages_bulk (gfp,numa_mem_id (),NULL , nr_pages, list); +return __alloc_pages_bulk (gfp,numa_mem_id (),NULL , nr_pages, list,NULL ); +} + +static inline unsigned long +alloc_pages_bulk_array (gfp_t gfp,unsigned long nr_pages,struct page **page_array) +{ +return __alloc_pages_bulk (gfp,numa_mem_id (),NULL , nr_pages,NULL , page_array); }/*
mm/page_alloc.c renamed from mm/page_alloc.c~mm-page_alloc-add-an-array-based-interface-to-the-bulk-page-allocator +44 -16
114 lines not on this page · raw message
_
Patches currently in -mm which might be from [email protected] are