mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-18 18:15:59 +00:00
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>
This commit is contained in:
parent
2492268472
commit
5b95a4acf1
1 changed files with 13 additions and 38 deletions
51
mm/slub.c
51
mm/slub.c
Loading…
Add table
Add a link
Reference in a new issue