diff options
| author | Christoph Lameter <[email protected]> | 2010-08-20 12:37:15 -0500 |
|---|---|---|
| committer | Pekka Enberg <[email protected]> | 2010-10-02 10:24:27 +0300 |
| commit | 51df1142816e469173889fb6d6dc810be9b9e022 (patch) | |
| tree | e2827e87486675b514c68f06d67ac5980cd6ceb1 /fs/jbd/commit.c | |
| parent | 6c182dc0de26ef97efb6a97a8deab074833764e7 (diff) | |
slub: Dynamically size kmalloc cache allocations
kmalloc caches are statically defined and may take up a lot of space just
because the sizes of the node array has to be dimensioned for the largest
node count supported.
This patch makes the size of the kmem_cache structure dynamic throughout by
creating a kmem_cache slab cache for the kmem_cache objects. The bootstrap
occurs by allocating the initial one or two kmem_cache objects from the
page allocator.
C2->C3
- Fix various issues indicated by David
- Make create kmalloc_cache return a kmem_cache * pointer.
Acked-by: David Rientjes <[email protected]>
Signed-off-by: Christoph Lameter <[email protected]>
Signed-off-by: Pekka Enberg <[email protected]>
Diffstat (limited to 'fs/jbd/commit.c')
0 files changed, 0 insertions, 0 deletions