diff options
author | Christoph Lameter <clameter@sgi.com> | 2008-04-14 19:11:30 +0300 |
---|---|---|
committer | Pekka Enberg <penberg@cs.helsinki.fi> | 2008-04-27 18:28:16 +0300 |
commit | 39b264641a0c3b5e0e742e2046b49e92d1f3be88 (patch) | |
tree | 1b7059ec5a0e498254f516c1be11b525d43af3c8 /init | |
parent | 33b12c38134e95e5afa73214af6f49abd7b8418e (diff) |
slub: Store max number of objects in the page struct.
Split the inuse field up to be able to store the number of objects in this
page in the page struct as well. Necessary if we want to have pages of
various orders for a slab. Also avoids touching struct kmem_cache cachelines in
__slab_alloc().
Update diagnostic code to check the number of objects and make sure that
the number of objects always stays within the bounds of a 16 bit unsigned
integer.
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions