Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Hocko <mhocko@suse.com>2018-08-03 13:44:45 +0200
committerMichal Hocko <mhocko@suse.com>2018-08-03 13:44:45 +0200
commit1bb67269b3c8eba0298855b6bcf23546950e9019 (patch)
tree87594ada7ca4d12783ee63168f4f548ad8bb38ab
parentb7d6a07544c9508e1bd64898de9d4275abe32d66 (diff)
Refresh patches.suse/pagecache-limit-vmstat_counters.patch (bnc#1103522,
-rw-r--r--mm/vmstat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/vmstat.c b/mm/vmstat.c
index 62bc1db33bc7..178e4377f3fa 100644
--- a/mm/vmstat.c
+++ b/mm/vmstat.c
@@ -1611,7 +1611,8 @@ static void *vmstat_start(struct seq_file *m, loff_t *pos)
stat_items_size = NR_VM_ZONE_STAT_ITEMS * sizeof(unsigned long) +
NR_VM_NUMA_STAT_ITEMS * sizeof(unsigned long) +
NR_VM_NODE_STAT_ITEMS * sizeof(unsigned long) +
- NR_VM_WRITEBACK_STAT_ITEMS * sizeof(unsigned long);
+ NR_VM_WRITEBACK_STAT_ITEMS * sizeof(unsigned long) +
+ NR_PAGECACHE_LIMIT_ITEMS * sizeof(unsigned long);
#ifdef CONFIG_VM_EVENT_COUNTERS
stat_items_size += sizeof(struct vm_event_state);