kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: pushpendra.singh@smartplayin.com (pushpendra.singh at smartplayin.com)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Content of  Kernelnewbies...
Date: Wed, 12 Nov 2014 10:59:28 +0530 (IST)	[thread overview]
Message-ID: <1415770168.60641603@apps.rackspace.com> (raw)
In-Reply-To: <mailman.1.1415725202.24821.kernelnewbies@kernelnewbies.org>



-----Original Message-----
From: kernelnewbies-request@kernelnewbies.org
Sent: Tuesday, 11 November, 2014 10:30pm
To: kernelnewbies at kernelnewbies.org
Subject: Kernelnewbies Digest, Vol 48, Issue 13

Send Kernelnewbies mailing list submissions to
	kernelnewbies at kernelnewbies.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
or, via email, send a message with subject or body 'help' to
	kernelnewbies-request at kernelnewbies.org

You can reach the person managing the list at
	kernelnewbies-owner at kernelnewbies.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Kernelnewbies digest..."


Today's Topics:

   1. Confusion about __do_fault and MM_ANONPAGES (Joel Fernandes)


----------------------------------------------------------------------

Message: 1
Date: Mon, 10 Nov 2014 16:23:57 -0800
From: Joel Fernandes <agnel.joel@gmail.com>
Subject: Confusion about __do_fault and MM_ANONPAGES
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	"kernelnewbies at kernelnewbies.org" <kernelnewbies@kernelnewbies.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Message-ID:
	<CAD=GYpYqbTrJ-wTZy=UBX1Z5=zMGVoaYU8jSa81rrcC4G0271w@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Hi,

I have some confusion about when is anon=1 when __do_fault is called.

__do_fault seems to be called only when the page fault is of a linear
or a non-linear mapping. My understanding is neither of these can be
anonymous, so I am confused about the below code fragment:

In which case is anon=1 when memory.c::__do_fault is called?
In __do_fault, you'll see something like...
        if (anon) {
            inc_mm_counter_fast(mm, MM_ANONPAGES);
            page_add_new_anon_rmap(page, vma, address);
        } else {


Thanks!
Joel



------------------------------

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


End of Kernelnewbies Digest, Vol 48, Issue 13
*********************************************

           reply	other threads:[~2014-11-12  5:29 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <mailman.1.1415725202.24821.kernelnewbies@kernelnewbies.org>]

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=1415770168.60641603@apps.rackspace.com \
    --to=pushpendra.singh@smartplayin.com \
    --cc=kernelnewbies@lists.kernelnewbies.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;
as well as URLs for NNTP newsgroup(s).