changeset 435:0c8d5e3e591f

[PATCH] Trivial HVF fix for using addr_to_page() instead of page_num_to_ptr(base >> PAGE_SHIFT) Hi, this is a simple patch to the buddy allocator that substitutes page_num_to_ptr(base >> PAGE_SHIFT) with a clearer function, addr_to_page(base). Signed-off-by: Nur Hussein <hussein@penguinattack.org> Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
author Nur Hussein <hussein@penguinattack.org>
date Mon, 17 May 2010 16:57:03 -0400
parents 604ec2382275
children 9a20fa6c7484 dc0825c5ca65
files cp/mm/buddy.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/cp/mm/buddy.c	Sun May 09 02:29:38 2010 -0400
+++ b/cp/mm/buddy.c	Mon May 17 16:57:03 2010 -0400
@@ -29,7 +29,7 @@
 		INIT_LIST_HEAD(&orders[order]);
 
 		if (pages & (1 << order)) {
-			p = page_num_to_ptr(base >> PAGE_SHIFT);
+			p = addr_to_page(base);
 
 			list_add(&p->buddy, &orders[order]);