diff options
author | Miaohe Lin <linmiaohe@huawei.com> | 2022-04-29 08:16:17 +0200 |
---|---|---|
committer | akpm <akpm@linux-foundation.org> | 2022-04-29 08:16:17 +0200 |
commit | 02d04a5163cd6bad66fd6091d2b4f53d06052aff (patch) | |
tree | 16d757dc91db730401f25deda4177fa32adf5eff | |
parent | mm: compaction: remove unneeded return value of kcompactd_run (diff) | |
download | linux-02d04a5163cd6bad66fd6091d2b4f53d06052aff.tar.xz linux-02d04a5163cd6bad66fd6091d2b4f53d06052aff.zip |
mm: compaction: remove unneeded pfn update
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>
-rw-r--r-- | mm/compaction.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/mm/compaction.c b/mm/compaction.c index 2e838992b324..f9e628a5306a 100644 --- a/mm/compaction.c +++ b/mm/compaction.c @@ -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; |