Skip to content

Commit

Permalink
mm/memcontrol: make mem_cgroup_inactive_anon_is_low() return bool
Browse files Browse the repository at this point in the history
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: Yaowei Bai <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
baihuahua authored and torvalds committed Nov 6, 2015
1 parent 42e2e45 commit 13308ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/linux/memcontrol.h
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ unsigned long mem_cgroup_get_lru_size(struct lruvec *lruvec, enum lru_list 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;
Expand Down Expand Up @@ -585,10 +585,10 @@ static inline bool mem_cgroup_disabled(void)
return true;
}

static inline int
static inline bool
mem_cgroup_inactive_anon_is_low(struct lruvec *lruvec)
{
return 1;
return true;
}

static inline bool mem_cgroup_lruvec_online(struct lruvec *lruvec)
Expand Down

0 comments on commit 13308ca

Please sign in to comment.