From: alad@hss.hns.com
To: linux-kernel@vger.kernel.org
Subject: [PATCH] locked page handling in shrink_cache()
Date: Mon, 7 Jan 2002 11:52:58 +0530 [thread overview]
Message-ID: <65256B3A.002382DF.00@sandesh.hss.hns.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 451 bytes --]
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
(See attached file: vmscan.c-2.4.16)
[-- Attachment #2: vmscan.c-2.4.16 --]
[-- Type: application/octet-stream, Size: 288 bytes --]
--- 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;
}
reply other threads:[~2002-01-07 6:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=65256B3A.002382DF.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
all inboxes | Powered by JetHome®