Skip to contentSkip to conversation

fs/proc/kcore.c: use PAGE_ALIGN instead of ALIGN(PAGE_SIZE)

PATCH In review Fabian Frederick 2 participants 2 messages Jun 7, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs/proc/kcore.c: use PAGE_ALIGN instead of ALIGN(PAGE_SIZE)

use mm.h definition

---
 fs/proc/kcore.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/proc/kcore.c +1 -1
index 39e6ef3..6df8d07 100644
@@ -172,7 +172,7 @@ get_sparsemem_vmemmap_info(struct kcore_list *ent, struct list_head *head)
 
 	start = ((unsigned long)pfn_to_page(pfn)) & PAGE_MASK;
 	end = ((unsigned long)pfn_to_page(pfn + nr_pages)) - 1;
-	end = ALIGN(end, PAGE_SIZE);
+	end = PAGE_ALIGN(end);
 	/* overlap check (because we have to align page */
 	list_for_each_entry(tmp, head, list) {
 		if (tmp->type != KCORE_VMEMMAP)
Signature · 1 line
1.9.1