diff options
author | Kefeng Wang <wangkefeng.wang@huawei.com> | 2022-09-07 08:08:42 +0200 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2022-10-03 23:03:03 +0200 |
commit | 4f9bc69ac5ce34071a9a51343bc81ca76cb2e3f1 (patch) | |
tree | 09f1faa2d36644a3800fed59651a11ea1089e65e /kernel/jump_label.c | |
parent | mm/page_owner.c: remove redundant drain_all_pages (diff) | |
download | linux-4f9bc69ac5ce34071a9a51343bc81ca76cb2e3f1.tar.xz linux-4f9bc69ac5ce34071a9a51343bc81ca76cb2e3f1.zip |
mm: reuse pageblock_start/end_pfn() macro
Move pageblock_start_pfn/pageblock_end_pfn() into pageblock-flags.h, then
they could be used somewhere else, not only in compaction, also use
ALIGN_DOWN() instead of round_down() to be pair with ALIGN(), which should
be same for pageblock usage.
Link: https://lkml.kernel.org/r/20220907060844.126891-1-wangkefeng.wang@huawei.com
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Acked-by: Mike Rapoport <rppt@linux.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Cc: Oscar Salvador <osalvador@suse.de>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'kernel/jump_label.c')
0 files changed, 0 insertions, 0 deletions