summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorChristoph Lameter <clameter@sgi.com>2008-04-14 18:11:31 +0200
committerPekka Enberg <penberg@cs.helsinki.fi>2008-04-27 17:28:17 +0200
commit834f3d119234b35a1985a2449831d99356637937 (patch)
tree3106946ecbe174935daa7ac2ff4c7806cc3004b8 /security
parentslub: for_each_object must be passed the number of objects in a slab (diff)
downloadlinux-834f3d119234b35a1985a2449831d99356637937.tar.xz
linux-834f3d119234b35a1985a2449831d99356637937.zip
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 <clameter@sgi.com> Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions