From: Christoph Lameter Date: Tue, 4 Sep 2012 23:18:33 +0000 (+0000) Subject: mm/sl[aou]b: Move duping of slab name to slab_common.c X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~8^2~1^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db265eca77000c5dafc5608975afe8dafb2a02d5;p=pandora-kernel.git mm/sl[aou]b: Move duping of slab name to slab_common.c Duping of the slabname has to be done by each slab. Moving this code to slab_common avoids duplicate implementations. With this patch we have common string handling for all slab allocators. Strings passed to kmem_cache_create() are copied internally. Subsystems can create temporary strings to create slab caches. Slabs allocated in early states of bootstrap will never be freed (and those can never be freed since they are essential to slab allocator operations). During bootstrap we therefore do not have to worry about duping names. Reviewed-by: Glauber Costa Signed-off-by: Christoph Lameter Signed-off-by: Pekka Enberg --- Reading git-diff-tree failed