]> git.baikalelectronics.ru Git - kernel.git/commit
mm: reuse pageblock_start/end_pfn() macro
authorKefeng Wang <wangkefeng.wang@huawei.com>
Wed, 7 Sep 2022 06:08:42 +0000 (14:08 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 3 Oct 2022 21:03:03 +0000 (14:03 -0700)
commitbbfceaa5e4569588cbd568b183b87ccc939d02c6
tree09f1faa2d36644a3800fed59651a11ea1089e65e
parent7c6e033d852a00ad23b2923afebc3e041ce171ae
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>
include/linux/pageblock-flags.h
mm/compaction.c
mm/memblock.c
mm/page_alloc.c
mm/page_isolation.c
mm/page_owner.c