|
@@ -2002,6 +2002,13 @@ void warn_alloc_failed(gfp_t gfp_mask, int order, const char *fmt, ...)
|
|
debug_guardpage_minorder() > 0)
|
|
debug_guardpage_minorder() > 0)
|
|
return;
|
|
return;
|
|
|
|
|
|
|
|
+ /*
|
|
|
|
+ * Walking all memory to count page types is very expensive and should
|
|
|
|
+ * be inhibited in non-blockable contexts.
|
|
|
|
+ */
|
|
|
|
+ if (!(gfp_mask & __GFP_WAIT))
|
|
|
|
+ filter |= SHOW_MEM_FILTER_PAGE_COUNT;
|
|
|
|
+
|
|
/*
|
|
/*
|
|
* This documents exceptions given to allocations in certain
|
|
* This documents exceptions given to allocations in certain
|
|
* contexts that are allowed to allocate outside current's set
|
|
* contexts that are allowed to allocate outside current's set
|