lkml.org 
[lkml]   [2003]   [Jun]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
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 13:39    [W:0.460 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site