All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sasha Sirotkin <buildroot@browserseal.com>
To: linux-mm@kvack.org
Subject: question about COW
Date: Sat, 17 Apr 2010 10:07:26 +0300	[thread overview]
Message-ID: <4BC95E2E.5040801@browserseal.com> (raw)

There is an "early COW" mechanism in __do_fault() which, if the page is 
not present and the fault is FAULT_PAGE_WRITE goes ahead and copies the 
page in order to prevent the next exception.

The question - why the code in __do_fault() does not decrease the shared 
map count of the old page as do_wp_page does ? And while we are at it, 
while this "early COW" code is much more simple than do_wp_page()?

Thanks.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

             reply	other threads:[~2010-04-17  7:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-17  7:07 Sasha Sirotkin [this message]
2010-04-19  3:47 ` question about COW KAMEZAWA Hiroyuki

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=4BC95E2E.5040801@browserseal.com \
    --to=buildroot@browserseal.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.