OSDN Git Service

mm: compaction: remove unneeded pfn update
authorMiaohe Lin <linmiaohe@huawei.com>
Fri, 29 Apr 2022 06:16:17 +0000 (23:16 -0700)
committerakpm <akpm@linux-foundation.org>
Fri, 29 Apr 2022 06:16:17 +0000 (23:16 -0700)
pfn is unused in this do while loop. Remove the unneeded pfn update.

Link: https://lkml.kernel.org/r/20220418141253.24298-3-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Cc: Charan Teja Kalla <charante@codeaurora.org>
Cc: David Hildenbrand <david@redhat.com>
Cc: Pintu Kumar <pintu@codeaurora.org>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/compaction.c

index 2e83899..f9e628a 100644 (file)
@@ -317,7 +317,6 @@ __reset_isolation_pfn(struct zone *zone, unsigned long pfn, bool check_source,
                }
 
                page += (1 << PAGE_ALLOC_COSTLY_ORDER);
-               pfn += (1 << PAGE_ALLOC_COSTLY_ORDER);
        } while (page <= end_page);
 
        return false;