]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0e2ff9c75cc4cf7c2f2a2dc69ff1f5c5f33ac240
tree8222033f1db996fd6ce28ce3685edc8b17793b0b
parent5d0a1606b2c0e52258da8fc524013a194959e72c
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