Message ID | 1452565170-11083-1-git-send-email-wangkefeng.wang@huawei.com |
---|---|
State | Accepted |
Commit | b500f77baea576b74c3961613b67eaffcdf65c57 |
Headers | show |
diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c index ec081fe..8829482 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, if (phys_addr < (phys_addr_t)0x40000000) return; - if (IS_ALIGNED(addr, PAGE_SIZE) && - IS_ALIGNED(next, PAGE_SIZE)) { + if (PAGE_ALIGNED(addr) && PAGE_ALIGNED(next)) { /* * Do not free direct mapping pages since they were * freed when offlining, or simplely not in use.