Skip to content

Commit

Permalink
cpuset: convert 'allowed' in __cpuset_node_allowed() to be boolean
Browse files Browse the repository at this point in the history
Convert 'allowed' in __cpuset_node_allowed() to be boolean since the
return types of node_isset() and __cpuset_node_allowed() are both
boolean.

Signed-off-by: Qi Zheng <zhengqi.arch@bytedance.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
  • Loading branch information
Qi Zheng authored and htejun committed Jan 7, 2022
1 parent f5f60d2 commit d4296fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/cgroup/cpuset.c
Original file line number Diff line number Diff line change
Expand Up @@ -3528,7 +3528,7 @@ static struct cpuset *nearest_hardwall_ancestor(struct cpuset *cs)
bool __cpuset_node_allowed(int node, gfp_t gfp_mask)
{
struct cpuset *cs; /* current cpuset ancestors */
int allowed; /* is allocation in zone z allowed? */
bool allowed; /* is allocation in zone z allowed? */
unsigned long flags;

if (in_interrupt())
Expand Down

0 comments on commit d4296fa

Please sign in to comment.