commit | 4d268eba1187ef66844a6a33b9431e5d0dadd4ad | [log] [tgz] |
---|---|---|
author | Pekka Enberg <penberg@cs.helsinki.fi> | Sun Jan 08 01:00:36 2006 -0800 |
committer | Linus Torvalds <torvalds@g5.osdl.org> | Sun Jan 08 20:12:39 2006 -0800 |
tree | 575aa29016688a07b2a80132a15cc8b5a5027f60 | |
parent | 85289f98ddc13f6cea82c59d6ff78f9d205dfccc [diff] |
[PATCH] slab: extract slab order calculation to separate function This patch moves the ugly loop that determines the 'optimal' size (page order) of cache slabs from kmem_cache_create() to a separate function and cleans it up a bit. Thanks to Matthew Wilcox for the help with this patch. Signed-off-by: Matthew Dobson <colpatch@us.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>