summaryrefslogtreecommitdiffstats
path: root/mm/vmscan.c
diff options
context:
space:
mode:
authorWang Sheng-Hui <shhuiw@gmail.com>2014-08-06 16:07:07 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2014-08-06 18:01:20 -0700
commitd0480be44a90af81a425f426c9107fb8f0899f65 (patch)
tree0d2a5b630d185a1cf3176dec29ee3cd4f256dfd0 /mm/vmscan.c
parent9aed8614af5a05cdaa32a0b78b0f1a424754a958 (diff)
downloadop-kernel-dev-d0480be44a90af81a425f426c9107fb8f0899f65.zip
op-kernel-dev-d0480be44a90af81a425f426c9107fb8f0899f65.tar.gz
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/vmscan.c')
-rw-r--r--mm/vmscan.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c
index 81dd858..5fec1ba 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -137,7 +137,11 @@ struct scan_control {
* From 0 .. 100. Higher means more swappy.
*/
int vm_swappiness = 60;
-unsigned long vm_total_pages; /* The total number of pages which the VM controls */
+/*
+ * The total number of pages which are beyond the high watermark within all
+ * zones.
+ */
+unsigned long vm_total_pages;
static LIST_HEAD(shrinker_list);
static DECLARE_RWSEM(shrinker_rwsem);
OpenPOWER on IntegriCloud