mm/compaction: remove unnecessary "else continue" at end of loop in isolate_freepages...
authorKemeng Shi <shikemeng@huaweicloud.com>
Thu, 3 Aug 2023 09:49:01 +0000 (17:49 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 21 Aug 2023 20:37:39 +0000 (13:37 -0700)
There is no behavior change to remove "else continue" code at end of scan
loop.  Just remove it to make code cleaner.

Link: https://lkml.kernel.org/r/20230803094901.2915942-5-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

index 82fd543..dc16efd 100644 (file)
@@ -671,8 +671,6 @@ static unsigned long isolate_freepages_block(struct compact_control *cc,
 isolate_fail:
                if (strict)
                        break;
-               else
-                       continue;
 
        }