Commit 8dd53fd3 authored by Greg Thelen's avatar Greg Thelen Committed by Linus Torvalds

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.comSigned-off-by: default avatarGreg Thelen <gthelen@google.com>
Acked-by: default avatarMichal Hocko <mhocko@suse.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Vladimir Davydov <vdavydov.dev@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 9ccc3617
...@@ -3083,7 +3083,7 @@ static int memcg_numa_stat_show(struct seq_file *m, void *v) ...@@ -3083,7 +3083,7 @@ static int memcg_numa_stat_show(struct seq_file *m, void *v)
#endif /* CONFIG_NUMA */ #endif /* CONFIG_NUMA */
/* Universal VM events cgroup1 shows, original sort order */ /* Universal VM events cgroup1 shows, original sort order */
unsigned int memcg1_events[] = { static const unsigned int memcg1_events[] = {
PGPGIN, PGPGIN,
PGPGOUT, PGPGOUT,
PGFAULT, PGFAULT,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment