From: logan@osdl.org
To: Anand Eswaran <aeswaran@andrew.cmu.edu>
Cc: linux-mm@kvack.org
Subject: Re: Doubt in do_no_page()
Date: Wed, 21 Jan 2004 18:16:50 +0200 (EET) [thread overview]
Message-ID: <Pine.LNX.4.53.0401211803120.3693@osdl> (raw)
In-Reply-To: <2276.128.2.181.129.1074700039.squirrel@webmail.andrew.cmu.edu>
On Wed, 21 Jan 2004, Anand Eswaran wrote:
>+1 if (!vma->vm_ops || !vma->vm_ops->nopage)
>+2 return do_anonymous_page(mm, vma, page_table, write_access, address);
>
> QUESTION
> ------------------------------------------------------------------------
>
> I assume that most faults would be serviced by the do_anonymous page i.e
> for most "normal" vma's ( say heap ) the vma->vm_ops->nopage would be
> NULL. Is that true?
> ------------------------------------------------------------------------
No Anand, the page fault is passed to do_anonymous_page
if vma ( say heap ) does not have its own page processing
functions ( i.e. ->vm_ops ), the check is made on those first,
its !vma->vm_ops, and if it has such, the same goes for !vm_ops->nopage.
You got wrong to for a while.
But i think code is ok.
-- Alex
--
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:"aart@kvack.org"> aart@kvack.org </a>
next prev parent reply other threads:[~2004-01-21 16:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-21 15:47 Anand Eswaran
2004-01-21 16:16 ` logan [this message]
2004-01-21 16:35 ` Randy.Dunlap
2004-01-21 17:08 ` logan
2004-01-21 17:11 ` logan
2004-01-21 16:51 ` Anand Eswaran
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.53.0401211803120.3693@osdl \
--to=logan@osdl.org \
--cc=aeswaran@andrew.cmu.edu \
--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