]> Git Repo - linux.git/blobdiff - include/linux/mm.h
mm: change inlined allocation helpers to account at the call site
[linux.git] / include / linux / mm.h
index 0dbd737cfabdce2ad9b09a11cb0ddab413c376d7..60eabc6c8e007bfee0b064f7224063829293a96e 100644 (file)
@@ -2860,12 +2860,13 @@ static inline bool pagetable_is_reserved(struct ptdesc *pt)
  *
  * Return: The ptdesc describing the allocated page tables.
  */
-static inline struct ptdesc *pagetable_alloc(gfp_t gfp, unsigned int order)
+static inline struct ptdesc *pagetable_alloc_noprof(gfp_t gfp, unsigned int order)
 {
-       struct page *page = alloc_pages(gfp | __GFP_COMP, order);
+       struct page *page = alloc_pages_noprof(gfp | __GFP_COMP, order);
 
        return page_ptdesc(page);
 }
+#define pagetable_alloc(...)   alloc_hooks(pagetable_alloc_noprof(__VA_ARGS__))
 
 /**
  * pagetable_free - Free pagetables
This page took 0.028666 seconds and 4 git commands to generate.