From: Chirayu Patel <chirayu@wipro.tcpn.com>
To: linux-mm@kvack.org, linux-kernel@vger.rutgers.edu
Subject: shrink_mmap ()?
Date: Thu, 26 Mar 1998 18:04:23 +0530 (GMT+0530) [thread overview]
Message-ID: <Pine.SUN.3.95.980326175034.17975N-100000@Kabini> (raw)
Hi,
I was going through the source for shrink_mmap.......
The attached code puzzled me..
We are freeing a page with count = 1 (referenced by one process only) but
we are not manipulating any page table entries. Why? Shouldnt we be
manipulating the page table entries or where are the page table entries
getting manipulated?
I know I have missed something terribly obvious over here. Can someone
please help me out.
Thanks.
-- Chirayu
-----------------------------------------------------------------------
switch (atomic_read(&page->count)) {
case 1:
/* is it a swap-cache or page-cache page? */
if (page->inode) {
if (test_and_clear_bit(PG_referenced,
&page->flags)) {
touch_page(page);
break;
}
age_page(page);
if (page->age)
break;
if (PageSwapCache(page)) {
delete_from_swap_cache(page);
return 1;
}
remove_page_from_hash_queue(page);
remove_page_from_inode_queue(page);
__free_page(page);
return 1;
}
------------------------------------------------------------------------------
next reply other threads:[~1998-03-26 12:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-03-26 12:34 Chirayu Patel [this message]
1998-03-26 13:09 ` Rik van Riel
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.SUN.3.95.980326175034.17975N-100000@Kabini \
--to=chirayu@wipro.tcpn.com \
--cc=linux-kernel@vger.rutgers.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