From: Wei Yang Date: Wed, 6 Aug 2014 23:04:42 +0000 (-0700) Subject: slub: avoid duplicate creation on the first object X-Git-Tag: omap-for-v3.17/fixes-against-rc2~137^2~188 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54266640709a24c9844245d0d9f36b9cb1f31326;p=pandora-kernel.git 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 Acked-by: Christoph Lameter Cc: Pekka Enberg Cc: David Rientjes Cc: Joonsoo Kim Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed