diff options
author | Wei Yang <[email protected]> | 2020-10-13 16:56:30 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2020-10-13 18:38:34 -0700 |
commit | 972a3da355c947283f3d88fd1764f001730206f9 (patch) | |
tree | b90e2d541ee348c93c0461840087961ab345e6f1 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | d3ec7b6e09e512ba902b86bcca2c512fb06d492f (diff) |
mm/hugetlb: count file_region to be added when regions_needed != NULL
There are only two cases of function add_reservation_in_range()
* count file_region and return the number in regions_needed
* do the real list operation without counting
This means it is not necessary to have two parameters to classify these
two cases.
Just use regions_needed to separate them.
Signed-off-by: Wei Yang <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Reviewed-by: Baoquan He <[email protected]>
Reviewed-by: Mike Kravetz <[email protected]>
Cc: Vlastimil Babka <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions