mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]> Acked-by: Balbir Singh <[email protected]> Acked-by: Pavel Emelyanov <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
7759fc9d10
commit
a181b0e888
1 changed files with 3 additions and 3 deletions
|
|
@ -35,9 +35,9 @@
|
|||
|
||||
#include <asm/uaccess.h>
|
||||
|
||||
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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue