mm: sl[au]b: add knowledge of PFMEMALLOC reserve pages
[cascardo/linux.git] / mm / internal.h
index 3314f79..eb76b67 100644 (file)
@@ -279,6 +279,9 @@ static inline struct page *mem_map_next(struct page *iter,
 #define __paginginit __init
 #endif
 
+/* Returns true if the gfp_mask allows use of ALLOC_NO_WATERMARK */
+bool gfp_pfmemalloc_allowed(gfp_t gfp_mask);
+
 /* Memory initialisation debug and verification */
 enum mminit_level {
        MMINIT_WARNING,