]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm, slab: suppress out of memory warning unless debug is enabled
authorDavid Rientjes <rientjes@google.com>
Thu, 22 May 2014 00:42:36 +0000 (10:42 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 22 May 2014 00:42:36 +0000 (10:42 +1000)
commit81f91e3f9e9865ff667fa89713a7c44bbf521571
treec2113c627ee32e16e55a04848873cfc44ab79c17
parent45e34ac5f77e9c7b7ce9c9bc85e6b86d29f3054a
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>
mm/slab.c
mm/slub.c