From: alad@hss.hns.com
To: linux-kernel@vger.kernel.org
Subject: [PATCH] locked page handling in shrink_cache() : revised
Date: Tue, 8 Jan 2002 10:51:24 +0530 [thread overview]
Message-ID: <65256B3B.001DEEA2.00@sandesh.hss.hns.com> (raw)
Whenever the shrink_cache wakes up after a laundered page in unlocked, it should
move that page to the end of inactive list so that
the page can be freed immediately and shrink_cache dosen't have to wait for
complete list scan before freeing this page.
The patch is created against standard redhat 7.1 distribution 2.4.16 kernel.
Let me know if I need to create it for a different kernel release.
regards
Amol
--- vmscan_orig.c Mon Jan 7 11:47:43 2002
+++ vmscan.c Mon Jan 7 11:49:07 2002
@@ -387,6 +387,8 @@
wait_on_page(page);
page_cache_release(page);
spin_lock(&pagemap_lru_lock);
+ list_del(&page->lru);
+ list_add(&page->lru,inactive_list.prev);
}
continue;
}
\x02
next reply other threads:[~2002-01-08 5:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-08 5:21 alad [this message]
2002-01-11 8:47 [PATCH] locked page handling in shrink_cache() : revised alad
2002-01-11 8:58 ` David S. Miller
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=65256B3B.001DEEA2.00@sandesh.hss.hns.com \
--to=alad@hss.hns.com \
--cc=linux-kernel@vger.kernel.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).