diff options
author | 2024-06-05 07:13:39 +0000 | |
---|---|---|
committer | 2024-06-06 07:55:51 +0300 | |
commit | f1180fd2a7c039691b64ebf404c746a74e40b7b0 (patch) | |
tree | 8f8ce3955a70d03503d604a4c019ae61ff33c852 /scripts/generate_rust_analyzer.py | |
parent | mm/mm_init.c: use deferred_init_mem_pfn_range_in_zone() to decide loop condition (diff) | |
download | wireguard-linux-f1180fd2a7c039691b64ebf404c746a74e40b7b0.tar.xz wireguard-linux-f1180fd2a7c039691b64ebf404c746a74e40b7b0.zip |
mm/mm_init.c: not always search next deferred_init_pfn from very beginning
In function deferred_init_memmap(), we call
deferred_init_mem_pfn_range_in_zone() to get the next deferred_init_pfn.
But we always search it from the very beginning.
Since we save the index in i, we can leverage this to search from i next
time.
[rppt refine the comment]
Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
Link: https://lore.kernel.org/all/20240605071339.15330-1-richard.weiyang@gmail.com
Signed-off-by: Mike Rapoport (IBM) <rppt@kernel.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions