diff options
author | Miaohe Lin <linmiaohe@huawei.com> | 2022-04-29 09:16:19 +0300 |
---|---|---|
committer | akpm <akpm@linux-foundation.org> | 2022-04-29 09:16:19 +0300 |
commit | fa599c44987df43eb5cd5d60e9868fc2c790d9dc (patch) | |
tree | 560fe979a61fa31fed0544e39ce3a269ee68cbea /mm/gup_test.h | |
parent | cff387d6a2949a46d78a4f558938ef7b4cccd41f (diff) | |
download | linux-fa599c44987df43eb5cd5d60e9868fc2c790d9dc.tar.xz |
mm: compaction: simplify the code in __compact_finished
Since commit efe771c7603b ("mm, compaction: always finish scanning of a
full pageblock"), compaction will always finish scanning a pageblock. And
migrate_pfn is assured to align with pageblock_nr_pages when we reach
here. So we will always return COMPACT_SUCCESS if a suitable fallback is
found due to the below IS_ALIGNED check of migrate_pfn. Simplify the code
to make this clear and improve the readability. No functional change
intended.
Link: https://lkml.kernel.org/r/20220418141253.24298-12-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>
Diffstat (limited to 'mm/gup_test.h')
0 files changed, 0 insertions, 0 deletions