diff options
author | 2020-10-13 16:56:30 -0700 | |
---|---|---|
committer | 2020-10-13 18:38:34 -0700 | |
commit | 972a3da355c947283f3d88fd1764f001730206f9 (patch) | |
tree | b90e2d541ee348c93c0461840087961ab345e6f1 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | mm/hugetlb: use list_splice to merge two list at once (diff) | |
download | wireguard-linux-972a3da355c947283f3d88fd1764f001730206f9.tar.xz wireguard-linux-972a3da355c947283f3d88fd1764f001730206f9.zip |
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 <richard.weiyang@linux.alibaba.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Baoquan He <bhe@redhat.com>
Reviewed-by: Mike Kravetz <mike.kravetz@oracle.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Link: https://lkml.kernel.org/r/20200831022351.20916-5-richard.weiyang@linux.alibaba.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions