From: KAMEZAWA Hiroyuki Date: Fri, 25 Jul 2008 08:47:08 +0000 (-0700) Subject: memcg: make global var read_mostly X-Git-Tag: v2.6.27-rc1~378 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=a181b0e888a1d917edcab57cd73ccf7d8e75a46c;p=linux-2.6-omap-h63xx.git memcg: make global var read_mostly mem_cgroup_subsys and page_cgroup_cache should be read_mostly and MEM_CGROUP_RECLAIM_RETRIES can be just a fixed number. Signed-off-by: KAMEZAWA Hiroyuki Acked-by: Balbir Singh Acked-by: Pavel Emelyanov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 7385d58fb06..c52c045f515 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -35,9 +35,9 @@ #include -struct cgroup_subsys mem_cgroup_subsys; -static const int MEM_CGROUP_RECLAIM_RETRIES = 5; -static struct kmem_cache *page_cgroup_cache; +struct cgroup_subsys mem_cgroup_subsys __read_mostly; +static struct kmem_cache *page_cgroup_cache __read_mostly; +#define MEM_CGROUP_RECLAIM_RETRIES 5 /* * Statistics for memory cgroup.