[PATCH] linux-2.1.91-pre2 crash fixed

Rik van Riel (H.H.vanRiel@fys.ruu.nl)
Thu, 26 Mar 1998 15:08:12 +0100 (MET)


Hi Linus,

I've found a small typo in mm/filemap.c, which prevented
proper operation of the VM subsystem and, in effect, threw
kswapd in a loop.

In effect, it refused to free buffer memory when it was
_above_ the minimum percentage :)

Rik.
+-------------------------------------------+--------------------------+
| Linux: - LinuxHQ MM-patches page | Scouting webmaster |
| - kswapd ask-him & complain-to guy | Vries cubscout leader |
| http://www.fys.ruu.nl/~riel/ | <H.H.vanRiel@fys.ruu.nl> |
+-------------------------------------------+--------------------------+

--- linux/mm/filemap.c.pre91-2 Thu Mar 26 15:03:44 1998
+++ linux/mm/filemap.c Thu Mar 26 15:04:25 1998
@@ -152,7 +152,7 @@
} while (tmp != bh);

/* Refuse to swap out all buffer pages */
- if ((buffermem >> PAGE_SHIFT) * 100 > (buffer_mem.min_percent * num_physpages))
+ if ((buffermem >> PAGE_SHIFT) * 100 < (buffer_mem.min_percent * num_physpages))
goto next;
}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu