From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx133.postini.com [74.125.245.133]) by kanga.kvack.org (Postfix) with SMTP id 754286B0037 for ; Wed, 19 Jun 2013 06:26:23 -0400 (EDT) Message-ID: <51C1871B.7080704@asianux.com> Date: Wed, 19 Jun 2013 18:25:31 +0800 From: Chen Gang MIME-Version: 1.0 Subject: [PATCH v2] mm/vmscan.c: 'lru' may be used without initialized after the patch "3abf380..." in next-20130607 tree References: <51C155D1.3090304@asianux.com> <20130619085315.GK1875@suse.de> <51C18051.8070404@asianux.com> In-Reply-To: <51C18051.8070404@asianux.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Mel Gorman Cc: hannes@cmpxchg.org, riel@redhat.com, mhocko@suse.cz, Andrew Morton , linux-mm@kvack.org, "linux-kernel@vger.kernel.org" '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 --- mm/vmscan.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/mm/vmscan.c b/mm/vmscan.c index fe73724..d03facb 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -595,6 +595,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 { /* -- 1.7.7.6 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org