lkml.org 
[lkml]   [2002]   [Oct]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [PATCH 2.5.41] New version of shared page tables

Ok, Bill Irwin found another bug. Here's the 2 lines of change.

Dave McCracken

======================================================================
Dave McCracken IBM Linux Base Kernel Team 1-512-838-3059
dmccr@us.ibm.com T/L 678-3059
--- a/fs/exec.c 8 Oct 2002 17:32:52 -0000 1.2
+++ b/fs/exec.c 8 Oct 2002 21:46:04 -0000
@@ -46,6 +46,7 @@
#include <asm/uaccess.h>
#include <asm/pgalloc.h>
#include <asm/mmu_context.h>
+#include <asm/rmap.h>

#ifdef CONFIG_KMOD
#include <linux/kmod.h>
@@ -308,7 +309,7 @@
flush_page_to_ram(page);
set_pte(pte, pte_mkdirty(pte_mkwrite(mk_pte(page, PAGE_COPY))));
page_add_rmap(page, pte);
- increment_rss(virt_to_page(pte));
+ increment_rss(kmap_atomic_to_page(pte));
pte_unmap(pte);
spin_unlock(&tsk->mm->page_table_lock);
\
 
 \ /
  Last update: 2005-03-22 13:29    [W:0.024 / U:0.648 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site