diff options
author | Mike Kravetz <[email protected]> | 2015-06-24 16:57:55 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2015-06-24 17:49:44 -0700 |
commit | cf3ad20bfeadda693e408d85684790714fc29b08 (patch) | |
tree | e0a4c133a20bebccdf53f809b3846c58021fd69f /tools/perf/scripts/python/sched-migration.py | |
parent | 1dd308a7b49d4bdbc17bfa570675ecc8cf7bedb3 (diff) |
mm/hugetlb: compute/return the number of regions added by region_add()
Modify region_add() to keep track of regions(pages) added to the reserve
map and return this value. The return value can be compared to the return
value of region_chg() to determine if the map was modified between calls.
Make vma_commit_reservation() also pass along the return value of
region_add(). In the normal case, we want vma_commit_reservation to
return the same value as the preceding call to vma_needs_reservation.
Create a common __vma_reservation_common routine to help keep the special
case return values in sync
Signed-off-by: Mike Kravetz <[email protected]>
Cc: Naoya Horiguchi <[email protected]>
Cc: Davidlohr Bueso <[email protected]>
Cc: David Rientjes <[email protected]>
Cc: Luiz Capitulino <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions