aboutsummaryrefslogtreecommitdiffstats
path: root/mm/vmscan.c
diff options
context:
space:
mode:
authorWanpeng Li <liwp@linux.vnet.ibm.com>2012-06-14 08:41:02 -0400
committerJiri Kosina <jkosina@suse.cz>2012-06-28 05:54:12 -0400
commitbe7bd59db71dfb6dc011c9880fec5a659430003a (patch)
tree04d73bb9befe49d82c3d07e955b93a0186056364 /mm/vmscan.c
parent422aa274203469771460411ffb2f70c241770b80 (diff)
mm: fix page reclaim comment error
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 <liwp.linux@gmail.com> Reviewed-by: Rik van Riel <riel@redhat.com> Acked-by: Minchan Kim <minchan@kernel.org> Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Acked-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'mm/vmscan.c')
-rw-r--r--mm/vmscan.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c
index 33dc256033b5..091ab8f88333 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -1894,7 +1894,8 @@ static int vmscan_swappiness(struct mem_cgroup_zone *mz,
1894 * by looking at the fraction of the pages scanned we did rotate back 1894 * by looking at the fraction of the pages scanned we did rotate back
1895 * onto the active list instead of evict. 1895 * onto the active list instead of evict.
1896 * 1896 *
1897 * nr[0] = anon pages to scan; nr[1] = file pages to scan 1897 * nr[0] = anon inactive pages to scan; nr[1] = anon active pages to scan
1898 * nr[2] = file inactive pages to scan; nr[3] = file active pages to scan
1898 */ 1899 */
1899static void get_scan_count(struct mem_cgroup_zone *mz, struct scan_control *sc, 1900static void get_scan_count(struct mem_cgroup_zone *mz, struct scan_control *sc,
1900 unsigned long *nr, int priority) 1901 unsigned long *nr, int priority)