From: Marcelo Tosatti <marcelo@conectiva.com.br>
To: Rik van Riel <riel@conectiva.com.br>
Cc: linux-mm@kvack.org
Subject: Re: [PATCH] bgaging + balance v2
Date: Fri, 27 Apr 2001 03:17:33 -0300 (BRT) [thread overview]
Message-ID: <Pine.LNX.4.21.0104270317090.2587-100000@freak.distro.conectiva> (raw)
In-Reply-To: <Pine.LNX.4.21.0104262206310.19012-100000@imladris.rielhome.conectiva>
On Thu, 26 Apr 2001, Rik van Riel wrote:
> Hi,
>
> in my patch yesterday evening there was a big mistake;
> the old line calculating maxscan wasn't removed, so all
> the fancy recalculation wouldn't do anything ;)
How about this patch on top of yours? ;)
--- linux.orig/mm/vmscan.c Fri Apr 27 04:32:52 2001
+++ linux/mm/vmscan.c Fri Apr 27 04:32:34 2001
@@ -644,6 +644,7 @@
struct page * page;
int maxscan = nr_active_pages >> priority;
int page_active = 0;
+ int start_count = count;
/*
* If no count was specified, we do background page aging.
@@ -725,7 +726,7 @@
}
spin_unlock(&pagemap_lru_lock);
- return count;
+ return (start_count - count);
}
/*
--
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 prev parent reply other threads:[~2001-04-27 6:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-27 1:08 Rik van Riel
2001-04-27 6:17 ` Marcelo Tosatti [this message]
2001-04-27 14:26 ` 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.LNX.4.21.0104270317090.2587-100000@freak.distro.conectiva \
--to=marcelo@conectiva.com.br \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox