From: Christoph Lameter Date: Mon, 14 Apr 2008 16:11:31 +0000 (+0300) Subject: slub: Add kmem_cache_order_objects struct X-Git-Tag: v2.6.26-rc1~695^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=834f3d119234b35a1985a2449831d99356637937;p=pandora-kernel.git slub: Add kmem_cache_order_objects struct Pack the order and the number of objects into a single word. This saves some memory in the kmem_cache_structure and more importantly allows us to fetch both values atomically. Later the slab orders become runtime configurable and we need to fetch these two items together in order to properly allocate a slab and initialize its objects. Fix the race by fetching the order and the number of objects in one word. [penberg@cs.helsinki.fi: fix memset() page order in new_slab()] Signed-off-by: Christoph Lameter Signed-off-by: Pekka Enberg --- Reading git-diff-tree failed