Re: [Research] Memory leak + solution (fwd)

Krzysztof Strasburger (strasbur@chkw386.ch.pwr.wroc.pl)
Fri, 18 Apr 97 18:56


>Hi,

>maybe it would be a better choice to move the `#ifdef SWAP_CACHE_INFO'
>linux/include/linux/swap.h for your patch.

>such like:

> if (entry) {
>#ifdef SWAP_CACHE_INFO
> swap_cache_find_success++;
>#endif
> nr_swap_cache_pages--;
> }

>Or one would get trouble on not defined SWAP_CACHE_INFO.

You are right, this is my mistake.
KS