Skip to content

Commit b500f77

Browse files
Kefeng WangIngo Molnar
authored andcommitted
x86/mm: Use PAGE_ALIGNED instead of IS_ALIGNED
Use PAGE_ALIGEND macro in <linux/mm.h> to simplify code. Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> Cc: <guohanjun@huawei.com> Cc: Alexander Kuleshov <kuleshovmail@gmail.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/1452565170-11083-1-git-send-email-wangkefeng.wang@huawei.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent 0f67280 commit b500f77

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arch/x86/mm/init_64.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -814,8 +814,7 @@ remove_pte_table(pte_t *pte_start, unsigned long addr, unsigned long end,
814814
if (phys_addr < (phys_addr_t)0x40000000)
815815
return;
816816

817-
if (IS_ALIGNED(addr, PAGE_SIZE) &&
818-
IS_ALIGNED(next, PAGE_SIZE)) {
817+
if (PAGE_ALIGNED(addr) && PAGE_ALIGNED(next)) {
819818
/*
820819
* Do not free direct mapping pages since they were
821820
* freed when offlining, or simplely not in use.

0 commit comments

Comments
 (0)