lkml.org 
[lkml]   [2011]   [Aug]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [patch 2/2] mm: vmscan: drop nr_force_scan[] from get_scan_count
    On Thu, 11 Aug 2011 22:31:55 +0200
    Johannes Weiner <jweiner@redhat.com> wrote:

    > 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 <jweiner@redhat.com>
    > Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
    > Cc: Michal Hocko <mhocko@suse.cz>
    > Cc: Ying Han <yinghan@google.com>
    > Cc: Balbir Singh <bsingharora@gmail.com>
    > Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
    > Cc: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
    > Cc: Mel Gorman <mel@csn.ul.ie>

    Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>



    \
     
     \ /
      Last update: 2011-08-17 03:23    [W:0.023 / U:0.848 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site