]> git.baikalelectronics.ru Git - kernel.git/commit
mm: sl[uo]b: fix misleading comments
authorDave Hansen <dave.hansen@linux.intel.com>
Tue, 28 Jan 2014 22:24:50 +0000 (14:24 -0800)
committerPekka Enberg <penberg@kernel.org>
Fri, 31 Jan 2014 11:40:34 +0000 (13:40 +0200)
commit481db38a5e5eb4d2ebd1180a0676b7d26a1b1075
tree9d0af35284088374a2a203cde24c4a7360d7abec
parent7f21faa52537a0e038d9a3c273a19420ec27416b
mm: sl[uo]b: fix misleading comments

On x86, SLUB creates and handles <=8192-byte allocations internally.
It passes larger ones up to the allocator.  Saying "up to order 2" is,
at best, ambiguous.  Is that order-1?  Or (order-2 bytes)?  Make
it more clear.

SLOB commits a similar sin.  It *handles* page-size requests, but the
comment says that it passes up "all page size and larger requests".

SLOB also swaps around the order of the very-similarly-named
KMALLOC_SHIFT_HIGH and KMALLOC_SHIFT_MAX #defines.  Make it
consistent with the order of the other two allocators.

Cc: Matt Mackall <mpm@selenic.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Christoph Lameter <cl@linux-foundation.org>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
include/linux/slab.h