--- 2.2.17pre19/mm/filemap.c Tue Aug 22 14:54:13 2000 +++ /tmp/filemap.c Thu Aug 24 01:05:50 2000 @@ -179,6 +179,8 @@ if ((gfp_mask & __GFP_DMA) && !PageDMA(page)) continue; + count--; + /* * Is it a page swap page? If so, we want to * drop it if it is no longer used, even if it @@ -224,7 +226,7 @@ return 1; } - } while (--count > 0); + } while (count > 0); return 0; }