diff options
author | Mel Gorman <mgorman@techsingularity.net> | 2016-08-11 18:32:57 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-08-11 19:58:13 -0400 |
commit | 2f95ff90b99600f53df4a0aa652322d349d67957 (patch) | |
tree | 609900c07aa052ce889366ef7ce64df4d9177801 /fs/proc | |
parent | c1470b33bb6e18cddd361fef339ef225b8339fe7 (diff) |
proc, meminfo: use correct helpers for calculating LRU sizes in meminfo
meminfo_proc_show() and si_mem_available() are using the wrong helpers
for calculating the size of the LRUs. The user-visible impact is that
there appears to be an abnormally high number of unevictable pages.
Link: http://lkml.kernel.org/r/20160805105805.GR2799@techsingularity.net
Signed-off-by: Mel Gorman <mgorman@techsingularity.net>
Cc: Dave Chinner <david@fromorbit.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/proc')
-rw-r--r-- | fs/proc/meminfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/meminfo.c b/fs/proc/meminfo.c index 09e18fdf61e5..b9a8c813e5e6 100644 --- a/fs/proc/meminfo.c +++ b/fs/proc/meminfo.c | |||
@@ -46,7 +46,7 @@ static int meminfo_proc_show(struct seq_file *m, void *v) | |||
46 | cached = 0; | 46 | cached = 0; |
47 | 47 | ||
48 | for (lru = LRU_BASE; lru < NR_LRU_LISTS; lru++) | 48 | for (lru = LRU_BASE; lru < NR_LRU_LISTS; lru++) |
49 | pages[lru] = global_page_state(NR_LRU_BASE + lru); | 49 | pages[lru] = global_node_page_state(NR_LRU_BASE + lru); |
50 | 50 | ||
51 | available = si_mem_available(); | 51 | available = si_mem_available(); |
52 | 52 | ||