mm/compaction: remove unnecessary cursor page in isolate_freepages_block
authorKemeng Shi <shikemeng@huaweicloud.com>
Thu, 3 Aug 2023 09:49:00 +0000 (17:49 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 21 Aug 2023 20:37:39 +0000 (13:37 -0700)
commitdc13292cccfd50916af00a471208fb48deb4d72f
tree4b9d38c12c9733dd9bfa4ace327af0dd65db1fe5
parenta2864a67452ec6e378e57cbe151aad62ccdcc03f
mm/compaction: remove unnecessary cursor page in isolate_freepages_block

The cursor is only used for page forward currently.  We can simply move
page forward directly to remove unnecessary cursor.

Link: https://lkml.kernel.org/r/20230803094901.2915942-4-shikemeng@huaweicloud.com
Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com>
Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Kemeng Shi <shikemeng@huawei.com>
Cc: Mel Gorman <mgorman@techsingularity.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/compaction.c