-----Original Message----- From: kernelnewbies-request@xxxxxxxxxxxxxxxxx Sent: Tuesday, 11 November, 2014 10:30pm To: kernelnewbies@xxxxxxxxxxxxxxxxx Subject: Kernelnewbies Digest, Vol 48, Issue 13 Send Kernelnewbies mailing list submissions to kernelnewbies@xxxxxxxxxxxxxxxxx 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@xxxxxxxxxxxxxxxxx You can reach the person managing the list at kernelnewbies-owner@xxxxxxxxxxxxxxxxx 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@xxxxxxxxx> Subject: Confusion about __do_fault and MM_ANONPAGES To: Linux Kernel Mailing List <linux-kernel@xxxxxxxxxxxxxxx>, "kernelnewbies@xxxxxxxxxxxxxxxxx" <kernelnewbies@xxxxxxxxxxxxxxxxx> Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Message-ID: <CAD=GYpYqbTrJ-wTZy=UBX1Z5=zMGVoaYU8jSa81rrcC4G0271w@xxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxxx http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies End of Kernelnewbies Digest, Vol 48, Issue 13 ********************************************* _______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies