[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] pre7-1 semicolon & nicely readable



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/