]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit209552da77c1c1e3d6e05a2619defe1814731082
tree83e46fb733008fa753269d338f90ad255cc59f53
parent287b6f4a84c0cb2892a6a522d3316ea4c413bdbe
slab: clarify and fix calculate_slab_order()

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