Thread (15 messages) 15 messages, 6 authors, 2011-08-31

Re: [patch 2/2] mm: vmscan: drop nr_force_scan[] from get_scan_count

From: Mel Gorman <hidden>
Date: 2011-08-17 14:00:08
Also in: lkml

On Fri, Aug 12, 2011 at 08:58:58AM +0200, Johannes Weiner wrote:
From: Johannes Weiner <redacted>
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 <redacted>
Acked-by: Mel Gorman <redacted>

-- 
Mel Gorman
SUSE Labs

--
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/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help