diff options
| author | Wei Yang <[email protected]> | 2015-11-05 18:45:51 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2015-11-05 19:34:48 -0800 |
| commit | 9f835703ea67633617ca82bc150f6ee70831b40a (patch) | |
| tree | b1fba922a9e90334d757f8fa2e8b9f392ef1b6bf /tools/perf/scripts/python/call-graph-from-postgresql.py | |
| parent | 033fd1bd3c50fdda267d27d02f9bc656f0b9ddb8 (diff) | |
mm/slub: calculate start order with reserved in consideration
In slub_order(), the order starts from max(min_order,
get_order(min_objects * size)). When (min_objects * size) has different
order from (min_objects * size + reserved), it will skip this order via a
check in the loop.
This patch optimizes this a little by calculating the start order with
`reserved' in consideration and removing the check in loop.
Signed-off-by: Wei Yang <[email protected]>
Acked-by: Christoph Lameter <[email protected]>
Cc: Pekka Enberg <[email protected]>
Cc: David Rientjes <[email protected]>
Cc: Joonsoo Kim <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions