From: Rik van Riel <riel@conectiva.com.br>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: linux-mm@kvack.org, linux-kernel@vger.rutgers.edu
Subject: [PATCH] pre7-1 semicolon & nicely readable
Date: Mon, 1 May 2000 11:46:07 -0300 (BRST) [thread overview]
Message-ID: <Pine.LNX.4.21.0005011143510.5695-100000@duckman.conectiva> (raw)
Hi Linus,
after getting a number of complaints that the semicolon
thing wasn't nicely readable (they're right) I changed my
code as per the patch below.
Could you please put the more readable version in the
next pre kernel?
thanks,
Rik
--
The Internet is not a network of computers. It is a network
of people. That is its real strength.
Wanna talk about the kernel? irc.openprojects.net / #kernelnewbies
http://www.conectiva.com/ http://www.surriel.com/
--- mm/vmscan.c.org2 Sat Apr 29 06:53:00 2000
+++ mm/vmscan.c Mon May 1 11:42:34 2000
@@ -384,11 +384,12 @@
for (; p != &init_task; p = p->next_task) {
int i = 0;
struct mm_struct *mm = p->mm;
- if (!p->swappable || !mm || mm->rss <= 0)
+ if (!p->swappable || !mm || mm->swap_cnt <= 0)
continue;
/* small processes are swapped out less */
while ((mm->swap_cnt << 2 * (i + 1) < max_cnt)
- && i++ < 10)
+ && i < 10)
+ i++;
mm->swap_cnt >>= i;
mm->swap_cnt += i; /* if swap_cnt reaches 0 */
/* we're big -> hog treatment */
--
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-05-01 14:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-05-01 14:46 Rik van Riel [this message]
2000-05-02 1:28 [PATCH] pre7-1 semicolon & nicely readableB Rik van Riel
2000-05-02 1:38 ` [PATCH] pre7-1 semicolon & nicely readable Roel van der Goot
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.0005011143510.5695-100000@duckman.conectiva \
--to=riel@conectiva.com.br \
--cc=linux-kernel@vger.rutgers.edu \
--cc=linux-mm@kvack.org \
--cc=riel@nl.linux.org \
--cc=torvalds@transmeta.com \
/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