summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-03-13 15:39:40 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-03-14 20:27:43 -0400
commit3504cbdfb90499459fbee29ac426c3cb0650f092 (patch)
treef0b600e432f890420f02d61a9711306f37018e8a
parent3bda3089c4c3290b735e870eb6300ded563ed553 (diff)
fixup! mm: enable page allocation tagging
-rw-r--r--include/linux/gfp.h20
1 files changed, 6 insertions, 14 deletions
diff --git a/include/linux/gfp.h b/include/linux/gfp.h
index 25a00e2a7719..17019b3e3e3c 100644
--- a/include/linux/gfp.h
+++ b/include/linux/gfp.h
@@ -207,19 +207,12 @@ unsigned long _alloc_pages_bulk_array_mempolicy(gfp_t gfp,
_nr_pages, _page_array), \
unsigned long, 0)
-
/* Bulk allocate order-0 pages */
-static inline unsigned long
-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, NULL);
-}
+#define alloc_pages_bulk_list(_gfp, _nr_pages, _list) \
+ __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);
-}
+#define alloc_pages_bulk_array(_gfp, _nr_pages, _page_array) \
+ __alloc_pages_bulk(_gfp, numa_mem_id(), NULL, _nr_pages, NULL, _page_array)
static inline unsigned long
_alloc_pages_bulk_array_node(gfp_t gfp, int nid, unsigned long nr_pages, struct page **page_array)
@@ -231,9 +224,8 @@ _alloc_pages_bulk_array_node(gfp_t gfp, int nid, unsigned long nr_pages, struct
}
#define alloc_pages_bulk_array_node(_gfp, _nid, _nr_pages, _page_array) \
- alloc_hooks(_alloc_pages_bulk_array_node(_gfp, _nid, \
- _nr_pages, _page_array), \
- unsigned long, 0)
+ alloc_hooks(_alloc_pages_bulk_array_node(_gfp, _nid, _nr_pages, _page_array), \
+ unsigned long, 0)
static inline void warn_if_node_offline(int this_node, gfp_t gfp_mask)
{