The patch titled Subject: mm: update the description for vm_total_pages has been added to the -mm tree. Its filename is mm-update-the-description-for-vm_total_pages.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-update-the-description-for-vm_total_pages.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-update-the-description-for-vm_total_pages.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Wang Sheng-Hui <shhuiw@xxxxxxxxx> Subject: 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@xxxxxxxxx> Cc: Mel Gorman <mgorman@xxxxxxx> Cc: Rik van Riel <riel@xxxxxxxxxx> Cc: Johannes Weiner <hannes@xxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/vmscan.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff -puN mm/vmscan.c~mm-update-the-description-for-vm_total_pages mm/vmscan.c --- a/mm/vmscan.c~mm-update-the-description-for-vm_total_pages +++ a/mm/vmscan.c @@ -136,7 +136,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); _ Patches currently in -mm which might be from shhuiw@xxxxxxxxx are mm-update-the-description-for-madvise_remove.patch mm-update-the-description-for-vm_total_pages.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html