[PATCH] pre7-1 semicolon & nicely readable

From: Rik van Riel (riel@conectiva.com.br)
Date: Mon May 01 2000 - 09:46:07 EST


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 from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun May 07 2000 - 21:00:08 EST