Commit 77ef80c6 authored by Yaowei Bai's avatar Yaowei Bai Committed by Linus Torvalds

kernel/cpuset: current_cpuset_is_being_rebound can be boolean

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

No functional change.

Link: http://lkml.kernel.org/r/1513266622-15860-4-git-send-email-baiyaowei@cmss.chinamobile.comSigned-off-by: default avatarYaowei Bai <baiyaowei@cmss.chinamobile.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 11209f3c
...@@ -112,7 +112,7 @@ static inline int cpuset_do_slab_mem_spread(void) ...@@ -112,7 +112,7 @@ static inline int cpuset_do_slab_mem_spread(void)
return task_spread_slab(current); return task_spread_slab(current);
} }
extern int current_cpuset_is_being_rebound(void); extern bool current_cpuset_is_being_rebound(void);
extern void rebuild_sched_domains(void); extern void rebuild_sched_domains(void);
...@@ -247,9 +247,9 @@ static inline int cpuset_do_slab_mem_spread(void) ...@@ -247,9 +247,9 @@ static inline int cpuset_do_slab_mem_spread(void)
return 0; return 0;
} }
static inline int current_cpuset_is_being_rebound(void) static inline bool current_cpuset_is_being_rebound(void)
{ {
return 0; return false;
} }
static inline void rebuild_sched_domains(void) static inline void rebuild_sched_domains(void)
......
...@@ -1254,9 +1254,9 @@ static int update_nodemask(struct cpuset *cs, struct cpuset *trialcs, ...@@ -1254,9 +1254,9 @@ static int update_nodemask(struct cpuset *cs, struct cpuset *trialcs,
return retval; return retval;
} }
int current_cpuset_is_being_rebound(void) bool current_cpuset_is_being_rebound(void)
{ {
int ret; bool ret;
rcu_read_lock(); rcu_read_lock();
ret = task_cs(current) == cpuset_being_rebound; ret = task_cs(current) == cpuset_being_rebound;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment