summaryrefslogtreecommitdiffstats
path: root/mm/vmalloc.c
diff options
context:
space:
mode:
authorWei Yang2018-06-08 02:06:43 +0200
committerLinus Torvalds2018-06-08 02:34:35 +0200
commit08994b24673b6ae33ee40fc3b5e265c6762848e4 (patch)
tree8edd4c0b7acf7664a526358273bdc8dca66915ff /mm/vmalloc.c
parentmm/sparse.c: check __highest_present_section_nr only for a present section (diff)
downloadkernel-qcow2-linux-08994b24673b6ae33ee40fc3b5e265c6762848e4.tar.gz
kernel-qcow2-linux-08994b24673b6ae33ee40fc3b5e265c6762848e4.tar.xz
kernel-qcow2-linux-08994b24673b6ae33ee40fc3b5e265c6762848e4.zip
mm/sparse.c: pass the __highest_present_section_nr + 1 to alloc_func()
In commit c4e1be9ec113 ("mm, sparsemem: break out of loops early") __highest_present_section_nr is introduced to reduce the loop counts for present section. This is also helpful for usemap and memmap allocation. This patch uses __highest_present_section_nr + 1 to optimize the loop. Link: http://lkml.kernel.org/r/20180326081956.75275-1-richard.weiyang@gmail.com Signed-off-by: Wei Yang <richard.weiyang@gmail.com> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Cc: David Rientjes <rientjes@google.com> Cc: Dave Hansen <dave.hansen@intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/vmalloc.c')
0 files changed, 0 insertions, 0 deletions