diff options
Diffstat (limited to 'include/linux/memcontrol.h')
-rw-r--r-- | include/linux/memcontrol.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h index d6183f06d8c1..7b4d9d79570b 100644 --- a/include/linux/memcontrol.h +++ b/include/linux/memcontrol.h | |||
@@ -77,7 +77,8 @@ extern void mem_cgroup_uncharge_cache_page(struct page *page); | |||
77 | 77 | ||
78 | bool __mem_cgroup_same_or_subtree(const struct mem_cgroup *root_memcg, | 78 | bool __mem_cgroup_same_or_subtree(const struct mem_cgroup *root_memcg, |
79 | struct mem_cgroup *memcg); | 79 | struct mem_cgroup *memcg); |
80 | int task_in_mem_cgroup(struct task_struct *task, const struct mem_cgroup *memcg); | 80 | bool task_in_mem_cgroup(struct task_struct *task, |
81 | const struct mem_cgroup *memcg); | ||
81 | 82 | ||
82 | extern struct mem_cgroup *try_get_mem_cgroup_from_page(struct page *page); | 83 | extern struct mem_cgroup *try_get_mem_cgroup_from_page(struct page *page); |
83 | extern struct mem_cgroup *mem_cgroup_from_task(struct task_struct *p); | 84 | extern struct mem_cgroup *mem_cgroup_from_task(struct task_struct *p); |
@@ -273,10 +274,10 @@ static inline bool mm_match_cgroup(struct mm_struct *mm, | |||
273 | return true; | 274 | return true; |
274 | } | 275 | } |
275 | 276 | ||
276 | static inline int task_in_mem_cgroup(struct task_struct *task, | 277 | static inline bool task_in_mem_cgroup(struct task_struct *task, |
277 | const struct mem_cgroup *memcg) | 278 | const struct mem_cgroup *memcg) |
278 | { | 279 | { |
279 | return 1; | 280 | return true; |
280 | } | 281 | } |
281 | 282 | ||
282 | static inline struct cgroup_subsys_state | 283 | static inline struct cgroup_subsys_state |