SLUB: use list_for_each_entry for loops over all slabs
authorChristoph Lameter <clameter@sgi.com>
Tue, 17 Jul 2007 11:03:19 +0000 (04:03 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 17 Jul 2007 17:23:01 +0000 (10:23 -0700)
commit5b95a4acf157eee552e013795b54eaa2ab1ee4a1
tree8222033f1db996fd6ce28ce3685edc8b17793b0b
parent2492268472e7d326a6fe10f92f9211c4578f2482
SLUB: use list_for_each_entry for loops over all slabs

Use list_for_each_entry() instead of list_for_each().

Get rid of for_all_slabs(). It had only one user. So fold it into the
callback. This also gets rid of cpu_slab_flush.

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