summaryrefslogtreecommitdiffstats
path: root/mm/util.c
diff options
context:
space:
mode:
authorWei Yang <weiyang@linux.vnet.ibm.com>2014-08-07 01:04:42 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2014-08-07 03:01:15 +0200
commit54266640709a24c9844245d0d9f36b9cb1f31326 (patch)
treec3fc54c3c86b0ff0d06f244baadada4f7d0dd2a3 /mm/util.c
parentslab: change int to size_t for representing allocation size (diff)
downloadlinux-54266640709a24c9844245d0d9f36b9cb1f31326.tar.xz
linux-54266640709a24c9844245d0d9f36b9cb1f31326.zip
slub: avoid duplicate creation on the first object
When a kmem_cache is created with ctor, each object in the kmem_cache will be initialized before ready to use. While in slub implementation, the first object will be initialized twice. This patch reduces the duplication of initialization of the first object. Fix commit 7656c72b ("SLUB: add macros for scanning objects in a slab"). Signed-off-by: Wei Yang <weiyang@linux.vnet.ibm.com> Acked-by: Christoph Lameter <cl@linux.com> Cc: Pekka Enberg <penberg@kernel.org> Cc: David Rientjes <rientjes@google.com> Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/util.c')
0 files changed, 0 insertions, 0 deletions