diff options
author | Christoph Lameter <[email protected]> | 2008-04-14 19:11:31 +0300 |
---|---|---|
committer | Pekka Enberg <[email protected]> | 2008-04-27 18:28:17 +0300 |
commit | 834f3d119234b35a1985a2449831d99356637937 (patch) | |
tree | 3106946ecbe174935daa7ac2ff4c7806cc3004b8 /fs/jbd2/commit.c | |
parent | 224a88be40c45c0da5bdc45a8118004a37c60e8a (diff) |
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.
[[email protected]: fix memset() page order in new_slab()]
Signed-off-by: Christoph Lameter <[email protected]>
Signed-off-by: Pekka Enberg <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions