提交 13308ca9 编写于 作者: Y Yaowei Bai 提交者: Linus Torvalds

mm/memcontrol: make mem_cgroup_inactive_anon_is_low() return bool

Make mem_cgroup_inactive_anon_is_low return bool due to this particular
function only using either one or zero as its return value.

No functional change.
Signed-off-by: NYaowei Bai <bywxiaobai@163.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 42e2e457
...@@ -382,7 +382,7 @@ unsigned long mem_cgroup_get_lru_size(struct lruvec *lruvec, enum lru_list lru) ...@@ -382,7 +382,7 @@ unsigned long mem_cgroup_get_lru_size(struct lruvec *lruvec, enum lru_list lru)
return mz->lru_size[lru]; return mz->lru_size[lru];
} }
static inline int mem_cgroup_inactive_anon_is_low(struct lruvec *lruvec) static inline bool mem_cgroup_inactive_anon_is_low(struct lruvec *lruvec)
{ {
unsigned long inactive_ratio; unsigned long inactive_ratio;
unsigned long inactive; unsigned long inactive;
...@@ -585,10 +585,10 @@ static inline bool mem_cgroup_disabled(void) ...@@ -585,10 +585,10 @@ static inline bool mem_cgroup_disabled(void)
return true; return true;
} }
static inline int static inline bool
mem_cgroup_inactive_anon_is_low(struct lruvec *lruvec) mem_cgroup_inactive_anon_is_low(struct lruvec *lruvec)
{ {
return 1; return true;
} }
static inline bool mem_cgroup_lruvec_online(struct lruvec *lruvec) static inline bool mem_cgroup_lruvec_online(struct lruvec *lruvec)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册