From: Pekka Enberg Date: Sun, 6 May 2007 21:48:40 +0000 (-0700) Subject: slab: introduce krealloc X-Git-Tag: v2.6.22-rc1~1005 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd76bab2fa6d8f3ef6b326a4c6ae442fa21d30a4;p=pandora-kernel.git slab: introduce krealloc This introduce krealloc() that reallocates memory while keeping the contents unchanged. The allocator avoids reallocation if the new size fits the currently used cache. I also added a simple non-optimized version for mm/slob.c for compatibility. [akpm@linux-foundation.org: fix warnings] Acked-by: Josef Sipek Acked-by: Matt Mackall Acked-by: Christoph Lameter Signed-off-by: Pekka Enberg Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed