[PATCH 2/7] unevictable lru: defer vm event counting

Lee Schermerhorn
2008-07-30T20:06:30Z

Fix to unevictable-lru-infrastructure.patch

NORECL_* events are not defined this early in the series.
Remove the event counting from this patch and add in with
unevictable lru statistics [subsequent patch].

Signed-off-by: Lee Schermerhorn <lee.schermerhorn@hp.com>

mm/vmscan.c | 6 ------
1 file changed, 6 deletions(-)

Index: linux-2.6.27-rc1-mmotm-30jul/mm/vmscan.c
===================================================================
--- linux-2.6.27-rc1-mmotm-30jul.orig/mm/vmscan.c 2008-07-30 12:58:41.000000000 -0400
+++ linux-2.6.27-rc1-mmotm-30jul/mm/vmscan.c 2008-07-30 12:59:58.000000000 -0400
@@ -484,7 +484,6 @@ void putback_lru_page(struct page *page)
{
int lru;
int active = !!TestClearPageActive(page);
- int was_unevictable = PageUnevictable(page);

VM_BUG_ON(PageLRU(page));

@@ -526,11 +525,6 @@ redo:
*/
}

- if (was_unevictable && lru != LRU_UNEVICTABLE)
- count_vm_event(NORECL_PGRESCUED);
- else if (!was_unevictable && lru == LRU_UNEVICTABLE)
- count_vm_event(NORECL_PGCULLED);
-
put_page(page); /* drop ref from isolate */
}