dont hang if swap is full

This commit is contained in:
cinap_lenrek 2011-08-24 06:52:24 +02:00
parent 924634963c
commit 5182bb7ecf

View file

@ -134,7 +134,7 @@ loop:
sleep(&swapalloc.r, needpages, 0);
while(needpages(junk)) {
if(swapimage.c) {
if(swapimage.c && swapalloc.free) {
p++;
if(p >= ep){
p = proctab(0);