diff options
author | Greg Thelen <gthelen@google.com> | 2018-06-07 20:07:23 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-06-07 20:34:36 -0400 |
commit | 8dd53fd3b702c12050ec5ddd07b56f8c4608ebea (patch) | |
tree | ec7edc658d5343c7321b6f2a17ea5ecc41a86750 /mm | |
parent | 9ccc361716362e8abb01d9944f8df97b4aac3e23 (diff) |
memcg: mark memcg1_events static const
Mark memcg1_events static: it's only used by memcontrol.c. And mark it
const: it's not modified.
Link: http://lkml.kernel.org/r/20180503192940.94971-1-gthelen@google.com
Signed-off-by: Greg Thelen <gthelen@google.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Vladimir Davydov <vdavydov.dev@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/memcontrol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 2751259f0a76..847a775af225 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c | |||
@@ -3083,7 +3083,7 @@ static int memcg_numa_stat_show(struct seq_file *m, void *v) | |||
3083 | #endif /* CONFIG_NUMA */ | 3083 | #endif /* CONFIG_NUMA */ |
3084 | 3084 | ||
3085 | /* Universal VM events cgroup1 shows, original sort order */ | 3085 | /* Universal VM events cgroup1 shows, original sort order */ |
3086 | unsigned int memcg1_events[] = { | 3086 | static const unsigned int memcg1_events[] = { |
3087 | PGPGIN, | 3087 | PGPGIN, |
3088 | PGPGOUT, | 3088 | PGPGOUT, |
3089 | PGFAULT, | 3089 | PGFAULT, |