mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-22 18:22:42 +00:00
slub: Simplify any_slab_object checks
Since we now have total_objects counter per node use that to check for the presence of any objects. The loop over all cpu slabs is not that useful since any cpu slab would require an object allocation first. So drop that. Signed-off-by: Christoph Lameter <clameter@sgi.com> Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
This commit is contained in:
parent
06b285dc3d
commit
31d33baf36
1 changed files with 1 additions and 9 deletions
10
mm/slub.c
10
mm/slub.c
Loading…
Add table
Add a link
Reference in a new issue