diff options
author | Kefeng Wang <wangkefeng.wang@huawei.com> | 2016-01-11 21:19:30 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-01-12 05:09:48 -0500 |
commit | b500f77baea576b74c3961613b67eaffcdf65c57 (patch) | |
tree | 51d2435b8a6fddc95f2d0d6ef93c872fb81ff703 | |
parent | 0f672809f91abd0aee01624ccad9199a62e3da7a (diff) |
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>
-rw-r--r-- | arch/x86/mm/init_64.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c index ec081fe0ce2c..8829482d69ec 100644 --- a/arch/x86/mm/init_64.c +++ b/arch/x86/mm/init_64.c | |||
@@ -814,8 +814,7 @@ remove_pte_table(pte_t *pte_start, unsigned long addr, unsigned long end, | |||
814 | if (phys_addr < (phys_addr_t)0x40000000) | 814 | if (phys_addr < (phys_addr_t)0x40000000) |
815 | return; | 815 | return; |
816 | 816 | ||
817 | if (IS_ALIGNED(addr, PAGE_SIZE) && | 817 | if (PAGE_ALIGNED(addr) && PAGE_ALIGNED(next)) { |
818 | IS_ALIGNED(next, PAGE_SIZE)) { | ||
819 | /* | 818 | /* |
820 | * Do not free direct mapping pages since they were | 819 | * Do not free direct mapping pages since they were |
821 | * freed when offlining, or simplely not in use. | 820 | * freed when offlining, or simplely not in use. |