mm: compaction: refactor compact_node()
authorKefeng Wang <wangkefeng.wang@huawei.com>
Thu, 8 Feb 2024 01:36:07 +0000 (09:36 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 22 Feb 2024 18:24:57 +0000 (10:24 -0800)
commit3e40b3f41723c67c989bec03e704268ac432b759
treea39bc80455f5b6b23f853f5cdf162fbb236d6620
parentb9ad003af13a1fe34319da6c2082038bce833831
mm: compaction: refactor compact_node()

Refactor compact_node() to handle both proactive and synchronous compact
memory, which cleanups code a bit.

Link: https://lkml.kernel.org/r/20240208013607.1731817-1-wangkefeng.wang@huawei.com
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/compaction.c