Commit c7355d75 authored by Vlastimil Babka's avatar Vlastimil Babka
Browse files

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: default avatarVlastimil Babka <vbabka@suse.cz>
Reviewed-by: default avatarFeng Tang <feng.tang@intel.com>
Reviewed-and-tested-by: default avatarJay Patel <jaypatel@linux.ibm.com>
parent e519ce7a
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment