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(). The special
case return values of vma_needs_reservation() should also be
taken into account when determining the return value of
vma_commit_reservation().
Signed-off-by: Mike Kravetz <mike.kravetz@oracle.com>
1 file changed