lkml.org 
[lkml]   [2003]   [Jun]   [29]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateSun, 29 Jun 2003 15:03:08 +0200
FromManfred Spraul <>
SubjectRe: Oops in __change_page_attr Re: (was 2.5.73-mm2)
Could you try the attached patch?
The code tries to map/unmap highmem pages on the fly, and that fails, 
because highmem pages are never mapped.

--
    Manfred
--- 2.5/arch/i386/mm/pageattr.c	2003-06-29 14:45:19.000000000 +0200
+++ build-2.5/arch/i386/mm/pageattr.c	2003-06-29 14:58:11.000000000 +0200
@@ -197,6 +197,8 @@
 #ifdef CONFIG_DEBUG_PAGEALLOC
 void kernel_map_pages(struct page *page, int numpages, int enable)
 {
+	if (page >= highmem_start_page) 
+		return;
 	/* the return value is ignored - the calls cannot fail,
 	 * large pages are disabled at boot time.
 	 */
\
 
 \ /
  Last update: 2005-03-22 12:39    [from the cache]
©2003-2008