[patchlet] Re: Memory problems with 2.3.23?

Mike Galbraith (mikeg@weiden.de)
Mon, 25 Oct 1999 04:46:01 +0200 (CEST)


On 24 Oct 1999, Graham Murray wrote:

> Arnaldo Carvalho de Melo <acme@conectiva.com.br> writes:
>
> > Try this patch, just posted by Ingo Molnar, reported to fix this (btw, I
> > was bitten by this same bug):
>
> I think that this patch only fixes memory corruption, not the
> incorrect reporting of the swap size. I have applied the patch (having
> had 2.3.23 without patch run out of memory), but /proc/meminfo still
> shows incorrect swap size.

Hi,

The below corrects it here.

-Mike

--- mm/swapfile.c.org Sun Oct 24 05:07:21 1999
+++ mm/swapfile.c Mon Oct 25 04:37:42 1999
@@ -795,7 +795,5 @@
++val->totalswap;
}
}
- val->freeswap <<= PAGE_SHIFT;
- val->totalswap <<= PAGE_SHIFT;
return;
}

-
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/