From 7d2f8d50c288b4458084efa5c4117ac62b3b2914 Mon Sep 17 00:00:00 2001 From: Chen Gang Date: Fri, 28 Jun 2013 09:51:39 +1000 Subject: [PATCH] mm/vmscan.c: 'lru' may be used without initialized after the patch "3abf380..." in next-20130607 tree 'lru' may be used without initialized, so need regressing part of the related patch. The related patch: "3abf380 mm: remove lru parameter from __lru_cache_add and lru_cache_add_lru" Signed-off-by: Chen Gang Cc: Mel Gorman Cc: Rik van Riel Cc: Johannes Weiner Signed-off-by: Andrew Morton --- mm/vmscan.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/vmscan.c b/mm/vmscan.c index b96faea62a11..99b3ac7771ad 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -560,6 +560,7 @@ redo: * unevictable page on [in]active list. * We know how to handle that. */ + lru = page_lru_base_type(page); lru_cache_add(page); } else { /* -- 2.39.5