Skip to content

Commit 108a8a1

Browse files
Fabian Fredericktorvalds
authored andcommitted
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>
1 parent a0be55d commit 108a8a1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/proc/kcore.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ get_sparsemem_vmemmap_info(struct kcore_list *ent, struct list_head *head)
172172

173173
start = ((unsigned long)pfn_to_page(pfn)) & PAGE_MASK;
174174
end = ((unsigned long)pfn_to_page(pfn + nr_pages)) - 1;
175-
end = ALIGN(end, PAGE_SIZE);
175+
end = PAGE_ALIGN(end);
176176
/* overlap check (because we have to align page */
177177
list_for_each_entry(tmp, head, list) {
178178
if (tmp->type != KCORE_VMEMMAP)

0 commit comments

Comments
 (0)