[PATCH] [3/3] CPA: Remove outdated comment in kernel_map_pages and add warning about recursion

From: Andi Kleen
Date: Fri Feb 01 2008 - 04:59:34 EST



Signed-off-by: Andi Kleen <ak@xxxxxxx>

---
arch/x86/mm/pageattr.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)

Index: linux/arch/x86/mm/pageattr.c
===================================================================
--- linux.orig/arch/x86/mm/pageattr.c
+++ linux/arch/x86/mm/pageattr.c
@@ -556,6 +556,7 @@ static int __set_pages_np(struct page *p
__pgprot(_PAGE_PRESENT));
}

+/* This function recurses with unknown maximum depth */
void kernel_map_pages(struct page *page, int numpages, int enable)
{
if (PageHighMem(page))
@@ -571,10 +572,6 @@ void kernel_map_pages(struct page *page,
if (!debug_pagealloc_enabled)
return;

- /*
- * The return value is ignored - the calls cannot fail,
- * large pages are disabled at boot time:
- */
if (enable)
__set_pages_p(page, numpages);
else
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/