diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-08-08 17:21:20 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-08-08 18:57:22 -0400 |
commit | 108a8a11cb64981b03bcb78fd78d09a53967d14f (patch) | |
tree | 8221394e05777d1d5238d23b95e10fd21fcbca55 /fs/proc | |
parent | a0be55dee71d437f7593c8c3673edd92962bafaf (diff) |
fs/proc/kcore.c: use PAGE_ALIGN instead of ALIGN(PAGE_SIZE)
Use mm.h definition.
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Cc: Xishi Qiu <qiuxishi@huawei.com>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/proc')
-rw-r--r-- | fs/proc/kcore.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/kcore.c b/fs/proc/kcore.c index 39e6ef32f0bd..6df8d0722c97 100644 --- a/fs/proc/kcore.c +++ b/fs/proc/kcore.c | |||
@@ -172,7 +172,7 @@ get_sparsemem_vmemmap_info(struct kcore_list *ent, struct list_head *head) | |||
172 | 172 | ||
173 | start = ((unsigned long)pfn_to_page(pfn)) & PAGE_MASK; | 173 | start = ((unsigned long)pfn_to_page(pfn)) & PAGE_MASK; |
174 | end = ((unsigned long)pfn_to_page(pfn + nr_pages)) - 1; | 174 | end = ((unsigned long)pfn_to_page(pfn + nr_pages)) - 1; |
175 | end = ALIGN(end, PAGE_SIZE); | 175 | end = PAGE_ALIGN(end); |
176 | /* overlap check (because we have to align page */ | 176 | /* overlap check (because we have to align page */ |
177 | list_for_each_entry(tmp, head, list) { | 177 | list_for_each_entry(tmp, head, list) { |
178 | if (tmp->type != KCORE_VMEMMAP) | 178 | if (tmp->type != KCORE_VMEMMAP) |