diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2018-04-19 13:43:56 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2018-04-19 13:43:56 +1000 |
commit | f5dc441f9ebca1ba32f01ce11cd83816ca6c1910 (patch) | |
tree | 09d0ca27784f979d3fe0544899e91081fc6a4515 /include/linux/memcontrol.h | |
parent | 6c2db30cee55dad6872c51d087872314ea1b6e0a (diff) | |
parent | c7fd486bf970e6a126931c537a57960f929e6e4a (diff) | |
download | linux-next-f5dc441f9ebca1ba32f01ce11cd83816ca6c1910.tar.gz |
Merge branch 'akpm/master'
Diffstat (limited to 'include/linux/memcontrol.h')
-rw-r--r-- | include/linux/memcontrol.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h index 2da009958798..af9eed2e3e04 100644 --- a/include/linux/memcontrol.h +++ b/include/linux/memcontrol.h @@ -356,6 +356,8 @@ struct mem_cgroup *mem_cgroup_from_css(struct cgroup_subsys_state *css){ return css ? container_of(css, struct mem_cgroup, css) : NULL; } +struct mem_cgroup *get_mem_cgroup_from_mm(struct mm_struct *mm); + static inline void mem_cgroup_put(struct mem_cgroup *memcg) { css_put(&memcg->css); @@ -813,6 +815,11 @@ static inline bool task_in_mem_cgroup(struct task_struct *task, return true; } +static inline struct mem_cgroup *get_mem_cgroup_from_mm(struct mm_struct *mm) +{ + return NULL; +} + static inline void mem_cgroup_put(struct mem_cgroup *memcg) { } |