diff options
author | Wang Sheng-Hui <shhuiw@gmail.com> | 2014-08-06 19:07:07 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-08-06 21:01:20 -0400 |
commit | d0480be44a90af81a425f426c9107fb8f0899f65 (patch) | |
tree | 0d2a5b630d185a1cf3176dec29ee3cd4f256dfd0 /mm | |
parent | 9aed8614af5a05cdaa32a0b78b0f1a424754a958 (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.c | 6 |
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 | */ |
139 | int vm_swappiness = 60; | 139 | int vm_swappiness = 60; |
140 | unsigned 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 | */ | ||
144 | unsigned long vm_total_pages; | ||
141 | 145 | ||
142 | static LIST_HEAD(shrinker_list); | 146 | static LIST_HEAD(shrinker_list); |
143 | static DECLARE_RWSEM(shrinker_rwsem); | 147 | static DECLARE_RWSEM(shrinker_rwsem); |