OSDN Git Service

mm/percpu: use list_first_entry_or_null in pcpu_reclaim_populated()
authorBaoquan He <bhe@redhat.com>
Tue, 25 Oct 2022 03:11:45 +0000 (11:11 +0800)
committerDennis Zhou <dennis@kernel.org>
Tue, 8 Nov 2022 06:57:53 +0000 (22:57 -0800)
commitc1f6688d35d47ca11200789b000b3b20f5ecdbd9
treec79b7479bde324cd5a90e2605f887c79a666d536
parent5a7d596a05dddd09c44ae462f881491cf87ed120
mm/percpu: use list_first_entry_or_null in pcpu_reclaim_populated()

To replace list_empty()/list_first_entry() pair to simplify code.

Signed-off-by: Baoquan He <bhe@redhat.com>
Acked-by: Dennis Zhou <dennis@kernel.org>
Signed-off-by: Dennis Zhou <dennis@kernel.org>
mm/percpu.c