From: Wang Sheng-Hui Date: Wed, 6 Aug 2014 23:07:07 +0000 (-0700) Subject: mm: update the description for vm_total_pages X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d0480be44a90af81a425f426c9107fb8f0899f65;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Cc: Mel Gorman Cc: Rik van Riel Cc: Johannes Weiner Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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 { * 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);