[PATCH 0/4] SLUB: calculate_order() cleanups

From: Vlastimil Babka
Date: Fri Sep 08 2023 - 10:53:24 EST


Since reviewing recent patches made me finally dig into these functions
in details for the first time, I've also noticed some opportunities for
cleanups that should make them simpler and also deliver more consistent
results for some corner case object sizes (probably not seen in
practice). Thus patch 3 can increase slab orders somewhere, but only in
the way that was already intended. Otherwise it's almost no functional
changes.

Vlastimil Babka (4):
mm/slub: simplify the last resort slab order calculation
mm/slub: remove min_objects loop from calculate_order()
mm/slub: attempt to find layouts up to 1/2 waste in calculate_order()
mm/slub: refactor calculate_order() and calc_slab_order()

mm/slub.c | 63 ++++++++++++++++++++++++-------------------------------
1 file changed, 27 insertions(+), 36 deletions(-)

--
2.42.0