diff options
author | Mina Almasry <[email protected]> | 2019-11-30 17:56:59 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2019-12-01 12:59:08 -0800 |
commit | d75c6af9c89ac1fe8b74a5c094ce412ae992efc9 (patch) | |
tree | 8e5dd9171b823c2ae6abf1f2c0c15a124e3ee19a /tools/perf/scripts/python/stackcollapse.py | |
parent | 5c9119542035dbbc61241ab8dc7feeac11fa82ca (diff) |
hugetlb: remove duplicated code
Remove duplicated code between region_chg and region_add, and refactor
it into a common function, add_reservation_in_range. This is mostly
done because there is a follow up change in another series that disables
region coalescing in region_add, and I want to make that change in one
place only. It should improve maintainability anyway on its own.
[[email protected]: coding style fixes]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Mina Almasry <[email protected]>
Reviewed-by: Mike Kravetz <[email protected]>
Cc: David Rientjes <[email protected]>
Cc: Shakeel Butt <[email protected]>
Cc: Greg Thelen <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions