diff options
author | Vlastimil Babka <vbabka@suse.cz> | 2023-09-08 09:57:13 +0200 |
---|---|---|
committer | Vlastimil Babka <vbabka@suse.cz> | 2023-10-02 11:54:32 +0200 |
commit | c7355d755698a01ff4187a0d2f6ad21ba233dc21 (patch) | |
tree | 72d186330293c9206b52a4d5de15849d3b657502 /tools/perf/scripts/python/stackcollapse.py | |
parent | e519ce7a26b4c877d834e4234e8d24478448c0d3 (diff) |
mm/slub: simplify the last resort slab order calculation
If calculate_order() can't fit even a single large object within
slub_max_order, it will try using the smallest necessary order that may
exceed slub_max_order but not MAX_ORDER.
Currently this is done with a call to calc_slab_order() which is
unnecessary. We can simply use get_order(size). No 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 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions