projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9aed861
)
mm: update the description for vm_total_pages
author
Wang Sheng-Hui
<
[email protected]
>
Wed, 6 Aug 2014 23:07:07 +0000
(16:07 -0700)
committer
Linus Torvalds
<
[email protected]
>
Thu, 7 Aug 2014 01:01:20 +0000
(18:01 -0700)
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 <
[email protected]
>
Cc: Mel Gorman <
[email protected]
>
Cc: Rik van Riel <
[email protected]
>
Cc: Johannes Weiner <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/vmscan.c
patch
|
blob
|
history
diff --git
a/mm/vmscan.c
b/mm/vmscan.c
index 81dd858b9d17c7c2b5fca417839cc220190144c3..5fec1ba9951fc92a3bff1e638b32e1b4a56bc7e3 100644
(file)
--- 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);