slab: clarify and fix calculate_slab_order()
authorLinus Torvalds <torvalds@g5.osdl.org>
Tue, 7 Mar 2006 01:44:43 +0000 (17:44 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 7 Mar 2006 01:44:43 +0000 (17:44 -0800)
If we triggered the 'offslab_limit' test, we would return with
cachep->gfporder incremented once too many times.

This clarifies the logic somewhat, and fixes that bug.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/slab.c

diff --cc mm/slab.c
Simple merge