linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Dave McCracken <dmccr@us.ibm.com>
To: Linux Memory Management <linux-mm@kvack.org>,
	Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 2.5.41] New version of shared page tables
Date: Tue, 08 Oct 2002 16:59:38 -0500	[thread overview]
Message-ID: <223810000.1034114378@baldur.austin.ibm.com> (raw)
In-Reply-To: <181170000.1034109448@baldur.austin.ibm.com>

[-- Attachment #1: Type: text/plain, Size: 296 bytes --]


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

[-- Attachment #2: shpte-tweak.diff --]
[-- Type: text/plain, Size: 541 bytes --]

--- 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);
 

  reply	other threads:[~2002-10-08 21:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-08 20:37 Dave McCracken
2002-10-08 21:59 ` Dave McCracken [this message]
2002-10-09  7:22   ` William Lee Irwin III

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=223810000.1034114378@baldur.austin.ibm.com \
    --to=dmccr@us.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox