aboutsummaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r--mm/page_alloc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 7ff1536f01b8..da7a2fe7332e 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -2003,6 +2003,13 @@ void warn_alloc_failed(gfp_t gfp_mask, int order, const char *fmt, ...)
2003 return; 2003 return;
2004 2004
2005 /* 2005 /*
2006 * Walking all memory to count page types is very expensive and should
2007 * be inhibited in non-blockable contexts.
2008 */
2009 if (!(gfp_mask & __GFP_WAIT))
2010 filter |= SHOW_MEM_FILTER_PAGE_COUNT;
2011
2012 /*
2006 * This documents exceptions given to allocations in certain 2013 * This documents exceptions given to allocations in certain
2007 * contexts that are allowed to allocate outside current's set 2014 * contexts that are allowed to allocate outside current's set
2008 * of allowed nodes. 2015 * of allowed nodes.