diff options
author | Wei Yang <[email protected]> | 2020-10-13 16:56:27 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2020-10-13 18:38:34 -0700 |
commit | d3ec7b6e09e512ba902b86bcca2c512fb06d492f (patch) | |
tree | a2bdb6769f9288054c6750c0aff81642deaa60c3 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | a1ddc2e8250eb550733a3f257ea299a84492d8a7 (diff) |
mm/hugetlb: use list_splice to merge two list at once
Instead of add allocated file_region one by one to region_cache, we could
use list_splice to merge two list at once.
Also we know the number of entries in the list, increase the number
directly.
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