From: Lai Jiangshan Date: Thu, 10 Mar 2011 07:21:48 +0000 (+0800) Subject: slub: automatically reserve bytes at the end of slab X-Git-Tag: v2.6.39-rc1~388^2~1^2~1^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab9a0f196f2f4f080df54402493ea3dc31b5243e;p=pandora-kernel.git slub: automatically reserve bytes at the end of slab There is no "struct" for slub's slab, it shares with struct page. But struct page is very small, it is insufficient when we need to add some metadata for slab. So we add a field "reserved" to struct kmem_cache, when a slab is allocated, kmem_cache->reserved bytes are automatically reserved at the end of the slab for slab's metadata. Changed from v1: Export the reserved field via sysfs Acked-by: Christoph Lameter Signed-off-by: Lai Jiangshan Signed-off-by: Pekka Enberg --- Reading git-diff-tree failed