Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1306930 > unrolled thread
| Started by | <wangkefeng.wang@huawei.com> |
|---|---|
| First post | 2016-01-12 03:30 +0100 |
| Last post | 2016-01-12 11:30 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH] x86/mm: use PAGE_ALIGNED instead of IS_ALIGNED <wangkefeng.wang@huawei.com> - 2016-01-12 03:30 +0100
[tip:x86/urgent] x86/mm: Use PAGE_ALIGNED instead of IS_ALIGNED tip-bot for Kefeng Wang <tipbot@zytor.com> - 2016-01-12 11:30 +0100
| From | <wangkefeng.wang@huawei.com> |
|---|---|
| Date | 2016-01-12 03:30 +0100 |
| Subject | [PATCH] x86/mm: use PAGE_ALIGNED instead of IS_ALIGNED |
| Message-ID | <qPWSC-2Tc-3@gated-at.bofh.it> |
From: Kefeng Wang <wangkefeng.wang@huawei.com>
Use PAGE_ALIGEND macro in <linux/mm.h> to simplify code.
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
---
arch/x86/mm/init_64.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
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.
--
2.6.0.GIT
[toc] | [next] | [standalone]
| From | tip-bot for Kefeng Wang <tipbot@zytor.com> |
|---|---|
| Date | 2016-01-12 11:30 +0100 |
| Subject | [tip:x86/urgent] x86/mm: Use PAGE_ALIGNED instead of IS_ALIGNED |
| Message-ID | <qQ4n9-81P-35@gated-at.bofh.it> |
| In reply to | #1306930 |
Commit-ID: b500f77baea576b74c3961613b67eaffcdf65c57
Gitweb: http://git.kernel.org/tip/b500f77baea576b74c3961613b67eaffcdf65c57
Author: Kefeng Wang <wangkefeng.wang@huawei.com>
AuthorDate: Tue, 12 Jan 2016 10:19:30 +0800
Committer: Ingo Molnar <mingo@kernel.org>
CommitDate: Tue, 12 Jan 2016 11:09:48 +0100
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>
---
arch/x86/mm/init_64.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
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.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web