Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755724Ab2FNMjq (ORCPT ); Thu, 14 Jun 2012 08:39:46 -0400 Received: from mail-pb0-f46.google.com ([209.85.160.46]:57498 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753881Ab2FNMjp (ORCPT ); Thu, 14 Jun 2012 08:39:45 -0400 From: =?UTF-8?B?G1tB?= To: linux-mm@kvack.org Cc: Andrew Morton , KAMEZAWA Hiroyuki , Mel Gorman , Minchan Kim , linux-kernel@vger.kernel.org, trivial@kernel.org, Gavin Shan , Wanpeng Li Subject: [PATCH] mm: fix page reclaim comment error Date: Thu, 14 Jun 2012 20:38:59 +0800 Message-Id: <4fd9db8d.c4e2440a.6bf6.4a46@mx.google.com> X-Mailer: git-send-email 1.7.9.5 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1311 Lines: 37 From: Wanpeng Li From: Wanpeng Li Since there are five lists in LRU cache, the array nr in get_scan_count should be: nr[0] = anon inactive pages to scan; nr[1] = anon active pages to scan nr[2] = file inactive pages to scan; nr[3] = file active pages to scan Signed-off-by: Wanpeng Li --- mm/vmscan.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mm/vmscan.c b/mm/vmscan.c index eeb3bc9..ed823df 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -1567,7 +1567,8 @@ static int vmscan_swappiness(struct scan_control *sc) * by looking at the fraction of the pages scanned we did rotate back * onto the active list instead of evict. * - * nr[0] = anon pages to scan; nr[1] = file pages to scan + * nr[0] = anon inactive pages to scan; nr[1] = anon active pages to scan + * nr[2] = file inactive pages to scan; nr[3] = file active pages to scan */ static void get_scan_count(struct lruvec *lruvec, struct scan_control *sc, unsigned long *nr) -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/