aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorWang Sheng-Hui <shhuiw@gmail.com>2014-08-06 19:07:07 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-08-06 21:01:20 -0400
commitd0480be44a90af81a425f426c9107fb8f0899f65 (patch)
tree0d2a5b630d185a1cf3176dec29ee3cd4f256dfd0 /mm
parent9aed8614af5a05cdaa32a0b78b0f1a424754a958 (diff)
mm: update the description for vm_total_pages
vm_total_pages is calculated by nr_free_pagecache_pages(), which counts the number of pages which are beyond the high watermark within all zones. So vm_total_pages is not equal to total number of pages which the VM controls. Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com> Cc: Mel Gorman <mgorman@suse.de> Cc: Rik van Riel <riel@redhat.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/vmscan.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c
index 81dd858b9d17..5fec1ba9951f 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -137,7 +137,11 @@ struct scan_control {
137 * From 0 .. 100. Higher means more swappy. 137 * From 0 .. 100. Higher means more swappy.
138 */ 138 */
139int vm_swappiness = 60; 139int vm_swappiness = 60;
140unsigned long vm_total_pages; /* The total number of pages which the VM controls */ 140/*
141 * The total number of pages which are beyond the high watermark within all
142 * zones.
143 */
144unsigned long vm_total_pages;
141 145
142static LIST_HEAD(shrinker_list); 146static LIST_HEAD(shrinker_list);
143static DECLARE_RWSEM(shrinker_rwsem); 147static DECLARE_RWSEM(shrinker_rwsem);