Bogus stuff in pre7-1

From: Tim Waugh (tim@cyberelk.demon.co.uk)
Date: Sat Apr 29 2000 - 14:46:37 EST


This looks wrong (from pre7-1):

diff -u --recursive v2.3.99-pre6/linux/mm/vmscan.c linux/mm/vmscan.c
--- v2.3.99-pre6/linux/mm/vmscan.c Wed Apr 26 16:34:09 2000
+++ linux/mm/vmscan.c Fri Apr 28 16:37:27 2000
@@ -387,8 +387,8 @@
                                if (!p->swappable || !mm || mm->rss <= 0)
                                        continue;
                                /* small processes are swapped out less */
- while ((mm->swap_cnt << 2 * (i + 1) < max_cnt))
- i++;
+ while ((mm->swap_cnt << 2 * (i + 1) < max_cnt)
+ && i++ < 10)
                                mm->swap_cnt >>= i;
                                mm->swap_cnt += i; /* if swap_cnt reaches 0 */
                                /* we're big -> hog treatment */

Looks like there's a semi-colon missing.

Tim.
*/


-
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 Apr 30 2000 - 21:00:17 EST