aboutsummaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorGravatar Vlastimil Babka <vbabka@suse.cz> 2023-09-08 12:18:09 +0200
committerGravatar Vlastimil Babka <vbabka@suse.cz> 2023-10-02 11:55:47 +0200
commit90f055df112162fd9e093c16be1c21f38c35b907 (patch)
tree323590ff68c2424b4c0ec64ca6f49c64fa7f410f /init
parentmm/slub: attempt to find layouts up to 1/2 waste in calculate_order() (diff)
downloadlinux-90f055df112162fd9e093c16be1c21f38c35b907.tar.gz
linux-90f055df112162fd9e093c16be1c21f38c35b907.tar.bz2
linux-90f055df112162fd9e093c16be1c21f38c35b907.zip
mm/slub: refactor calculate_order() and calc_slab_order()
After the previous cleanups, we can now move some code from calc_slab_order() to calculate_order() so it's executed just once, and do some more cleanups. - move the min_order and MAX_OBJS_PER_PAGE evaluation to calculate_order(). - change calc_slab_order() parameter min_objects to min_order Also make MAX_OBJS_PER_PAGE check more robust by considering also min_objects in addition to slub_min_order. Otherwise this is not a functional change. Signed-off-by: Vlastimil Babka <vbabka@suse.cz> Reviewed-by: Feng Tang <feng.tang@intel.com> Reviewed-and-tested-by: Jay Patel <jaypatel@linux.ibm.com>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions