aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDavid Rientjes <rientjes@google.com>2014-06-04 16:06:36 -0700
committerMoyster <oysterized@gmail.com>2016-09-28 15:14:12 +0200
commit4b4c2d3bb5c9ff680103500f6ca1d796f050e0f4 (patch)
tree387e56e6ace94396fb7706d9c0159acd6c6c1b61 /scripts
parent1d69ffb241779b94cb7923c63055b1d18cafd332 (diff)
mm, slab: suppress out of memory warning unless debug is enabled
When the slab or slub allocators cannot allocate additional slab pages, they emit diagnostic information to the kernel log such as current number of slabs, number of objects, active objects, etc. This is always coupled with a page allocation failure warning since it is controlled by !__GFP_NOWARN. Suppress this out of memory warning if the allocator is configured without debug supported. The page allocation failure warning will indicate it is a failed slab allocation, the order, and the gfp mask, so this is only useful to diagnose allocator issues. Since CONFIG_SLUB_DEBUG is already enabled by default for the slub allocator, there is no functional change with this patch. If debug is disabled, however, the warnings are now suppressed. Signed-off-by: David Rientjes <rientjes@google.com> Cc: Pekka Enberg <penberg@kernel.org> Acked-by: Christoph Lameter <cl@linux.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: W4TCH0UT <ateekujjawal@gmail.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions