]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/page_alloc: simplify update of pgdat in wake_all_kswapds
authorChen Wandun <chenwandun@huawei.com>
Thu, 14 Apr 2022 06:07:09 +0000 (23:07 -0700)
committerakpm <akpm@linux-foundation.org>
Thu, 14 Apr 2022 06:07:09 +0000 (23:07 -0700)
commitb24ea048b4c290959996309b62041e9f33569afd
tree6ba89cdb89a4f56b7deebfd488d5b0118466b84b
parente7cb2b1faeb1b1a1ecb7706025788c0a0c80bb9b
mm/page_alloc: simplify update of pgdat in wake_all_kswapds

There is no need to update last_pgdat for each zone, only update
last_pgdat when iterating the first zone of a node.

Link: https://lkml.kernel.org/r/20220322115635.2708989-1-chenwandun@huawei.com
Signed-off-by: Chen Wandun <chenwandun@huawei.com>
Cc: Mel Gorman <mgorman@techsingularity.net>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_alloc.c