diff options
author | Vlastimil Babka <vbabka@suse.cz> | 2023-09-08 12:18:09 +0200 |
---|---|---|
committer | Vlastimil Babka <vbabka@suse.cz> | 2023-10-02 11:55:47 +0200 |
commit | 90f055df112162fd9e093c16be1c21f38c35b907 (patch) | |
tree | 323590ff68c2424b4c0ec64ca6f49c64fa7f410f /scripts | |
parent | 5886fc82b6e3166dd1ba876809888fc39028d626 (diff) |
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 'scripts')
0 files changed, 0 insertions, 0 deletions