]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] slab: make drain_array more universal by adding more parameters
authorChristoph Lameter <clameter@engr.sgi.com>
Wed, 22 Mar 2006 08:09:06 +0000 (00:09 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 22 Mar 2006 15:54:05 +0000 (07:54 -0800)
commitaab2207cf8d9c343b6b5f0e4d27e1732f8618d14
treedeb851a556ac7d2339a5bc83985a33fe126321ee
parent35386e3b0f876bf194982f48f027af0c216499ce
[PATCH] slab: make drain_array more universal by adding more parameters

And a parameter to drain_array to control the freeing of all objects and
then use drain_array() to replace instances of drain_array_locked with
drain_array.  Doing so will avoid taking locks in those locations if the
arrays are empty.

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/slab.c