Signed-off-by: Joonsoo Kim <iamjoonsoo....@lge.com> diff --git a/include/linux/gfp.h b/include/linux/gfp.h index 8bfa87b..f8cde28 100644 --- a/include/linux/gfp.h +++ b/include/linux/gfp.h @@ -327,6 +327,16 @@ static inline struct page *alloc_pages_exact_node(int nid, gfp_t gfp_mask, return __alloc_pages(gfp_mask, order, node_zonelist(nid, gfp_mask)); } +static inline struct page *alloc_pages_exact_node_multiple(int nid, + gfp_t gfp_mask, unsigned long *nr_pages, struct page **pages) +{ + VM_BUG_ON(nid < 0 || nid >= MAX_NUMNODES || !node_online(nid)); + + return __alloc_pages_nodemask(gfp_mask, 0, + node_zonelist(nid, gfp_mask), NULL, + nr_pages, pages); +} + #ifdef CONFIG_NUMA extern struct page *alloc_pages_current(gfp_t gfp_mask, unsigned order); -- 1.7.9.5
-- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/