From: Hugh Dickins <hugh@veritas.com>
To: Jes Sorensen <jes@sgi.com>
Cc: linux-mm@kvack.org, Linus Torvalds <torvalds@osdl.org>,
Carsten Otte <cotte@de.ibm.com>,
roe@sgi.com, Robin Holt <holt@sgi.com>,
Jack Steiner <steiner@sgi.com>
Subject: Re: VM_PFNMAP and do_no_pfn handler
Date: Mon, 20 Feb 2006 16:30:13 +0000 (GMT) [thread overview]
Message-ID: <Pine.LNX.4.61.0602201620340.12699@goblin.wat.veritas.com> (raw)
In-Reply-To: <yq0psliqb2p.fsf@jaguar.mkp.net>
On Mon, 20 Feb 2006, Jes Sorensen wrote:
>
> Thanks for the explanation. It just seemed to me that is_cow_mapping()
> seemed a bit of a strange name for a
> 'this_mapping_really_has_no_struct_page_behind_it_honest()' function.
> Is there some reason why we try to look up the struct page for
> anything mapped VM_PFNMAP?
If it's a Copy-On-Write mapping, then a write fault on a page (or page
frame!) in that mapping will copy the original to an ordinary anonymous
page, which will then be substituted into the mapping in that position.
So although the vma is marked VM_PFNMAP, if it is_cow_mapping, then it
might contain ordinary struct-page-type pages, which have to be dealt
with in the normal way (otherwise they'll get leaked).
(At first we thought this was not a realistic situation; then we found
some apps did it, and we thought they were just being silly; then we
found that some really relied on COW-ing in a PFNMAP area.)
Hugh
--
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>
prev parent reply other threads:[~2006-02-20 16:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-20 14:20 Jes Sorensen
2006-02-20 15:39 ` Hugh Dickins
2006-02-20 15:55 ` Jes Sorensen
2006-02-20 16:30 ` Hugh Dickins [this message]
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=Pine.LNX.4.61.0602201620340.12699@goblin.wat.veritas.com \
--to=hugh@veritas.com \
--cc=cotte@de.ibm.com \
--cc=holt@sgi.com \
--cc=jes@sgi.com \
--cc=linux-mm@kvack.org \
--cc=roe@sgi.com \
--cc=steiner@sgi.com \
--cc=torvalds@osdl.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