mm: compaction: move list validation into compact_zone()
authorBaolin Wang <baolin.wang@linux.alibaba.com>
Tue, 10 Jan 2023 13:36:19 +0000 (21:36 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 3 Feb 2023 06:32:53 +0000 (22:32 -0800)
commit753ec50d976c28b08266dec3110905b377464eb1
tree43f86c1680c7513ace27fe812ea7391942adc9e8
parentc6835e8d86bcd8313347e097da140057772307c0
mm: compaction: move list validation into compact_zone()

Move the cc.freepages and cc.migratepages list validation into compact_zone()
to remove some duplicate code.

Link: https://lkml.kernel.org/r/15cf54f7d762e87b04ac3cc74536f7d1ebbcd8cd.1673342761.git.baolin.wang@linux.alibaba.com
Signed-off-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Cc: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/compaction.c