From: "Juan J. Quintela" <quintela@fi.udc.es>
To: ac@muc.de, Alan Cox <alan@lxorguk.ukuu.org.uk>,
Dave Jones <dave@denial.force9.co.uk>,
Rik van Riel <riel@conectiva.com.br>,
linux-mm@kvack.org, lkml <linux-kernel@vger.rutgers.edu>
Subject: PATCH: Improvement in shrink_mmap
Date: 15 Jun 2000 00:19:41 +0200 [thread overview]
Message-ID: <yttg0qf7vnm.fsf@serpe.mitica> (raw)
Hi
The actual code in shrink mmap waits for all the pages after
we pass priority pages. The idea is to wait only each
priority pages. I have had such a patch for a while here, it
appears to work here. I send it to Linus in the middle of a
bigger patch that was not accepted and I forgot to send only
this two-liner.
Later, Juan.
diff -urN --exclude-from=/home/lfcia/quintela/work/kernel/exclude ac18/mm/filemap.c prueba/mm/filemap.c
--- ac18/mm/filemap.c Tue Jun 13 23:18:35 2000
+++ prueba/mm/filemap.c Thu Jun 15 00:18:33 2000
@@ -351,7 +351,9 @@
* of zone - it's old.
*/
if (page->buffers) {
- int wait = ((gfp_mask & __GFP_IO) && (nr_dirty-- < 0));
+ int wait = ((gfp_mask & __GFP_IO) && (nr_dirty-- <= 0));
+ if(nr_dirty < 0)
+ nr_dirty = priority;
if (!try_to_free_buffers(page, wait))
goto unlock_continue;
/* page was locked, inode can't go away under us */
--
In theory, practice and theory are the same, but in practice they
are different -- Larry McVoy
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/
next reply other threads:[~2000-06-14 22:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-06-14 22:19 Juan J. Quintela [this message]
2000-06-15 0:18 ` PATCH: Improvement in shrink_mmap (take 2) Juan J. Quintela
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=yttg0qf7vnm.fsf@serpe.mitica \
--to=quintela@fi.udc.es \
--cc=ac@muc.de \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=dave@denial.force9.co.uk \
--cc=linux-kernel@vger.rutgers.edu \
--cc=linux-mm@kvack.org \
--cc=riel@conectiva.com.br \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.