Tag: KERNEL-2-2-18-PRE11-PATCH-9 Patch: account-failed-buffer-tries-1 From: Andrea Arcangeli Account also the failed buffer tries during shrink_mmap. Index: linux/mm/filemap.c diff -u linux/mm/filemap.c:1.4.4.1 linux/mm/filemap.c:1.4.4.2 --- linux/mm/filemap.c:1.4.4.1 Wed Sep 27 23:57:09 2000 +++ linux/mm/filemap.c Wed Sep 27 23:57:48 2000 @@ -188,6 +188,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 @@ -233,7 +235,7 @@ return 1; } - } while (--count > 0); + } while (count > 0); return 0; }