diff options
author | 2020-10-13 16:56:27 -0700 | |
---|---|---|
committer | 2020-10-13 18:38:34 -0700 | |
commit | d3ec7b6e09e512ba902b86bcca2c512fb06d492f (patch) | |
tree | a2bdb6769f9288054c6750c0aff81642deaa60c3 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | mm/hugetlb: remove VM_BUG_ON(!nrg) in get_file_region_entry_from_cache() (diff) | |
download | wireguard-linux-d3ec7b6e09e512ba902b86bcca2c512fb06d492f.tar.xz wireguard-linux-d3ec7b6e09e512ba902b86bcca2c512fb06d492f.zip |
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 <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-4-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