From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753734Ab1HQOAI (ORCPT ); Wed, 17 Aug 2011 10:00:08 -0400 Received: from gir.skynet.ie ([193.1.99.77]:35758 "EHLO gir.skynet.ie" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753587Ab1HQOAF (ORCPT ); Wed, 17 Aug 2011 10:00:05 -0400 Date: Wed, 17 Aug 2011 15:00:02 +0100 From: Mel Gorman To: Johannes Weiner Cc: Minchan Kim , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, KAMEZAWA Hiroyuki , Michal Hocko , Ying Han , Balbir Singh , KOSAKI Motohiro , Daisuke Nishimura Subject: Re: [patch 2/2] mm: vmscan: drop nr_force_scan[] from get_scan_count Message-ID: <20110817140002.GD4484@csn.ul.ie> References: <1313094715-31187-1-git-send-email-jweiner@redhat.com> <1313094715-31187-2-git-send-email-jweiner@redhat.com> <20110812065858.GA6916@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20110812065858.GA6916@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 12, 2011 at 08:58:58AM +0200, Johannes Weiner wrote: > From: Johannes Weiner > Subject: [patch] mm: vmscan: drop nr_force_scan[] from get_scan_count > > The nr_force_scan[] tuple holds the effective scan numbers for anon > and file pages in case the situation called for a forced scan and the > regularly calculated scan numbers turned out zero. > > However, the effective scan number can always be assumed to be > SWAP_CLUSTER_MAX right before the division into anon and file. The > numerators and denominator are properly set up for all cases, be it > force scan for just file, just anon, or both, to do the right thing. > > Signed-off-by: Johannes Weiner Acked-by: Mel Gorman -- Mel Gorman SUSE Labs