There's a loop in kmem_cache_create() where we try to determine the best page order for a slab. It's a big, ugly loop, so let's move it to its own function: calculate_slab_order(). -Matt