cpuset: convert 'allowed' in __cpuset_node_allowed() to be boolean
authorQi Zheng <zhengqi.arch@bytedance.com>
Sun, 19 Dec 2021 02:41:54 +0000 (10:41 +0800)
committerTejun Heo <tj@kernel.org>
Fri, 7 Jan 2022 22:05:52 +0000 (12:05 -1000)
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>
kernel/cgroup/cpuset.c

index 0dd7d853ed17a98ba5936eb7ec5c8afa51305409..dc653ab26e50e0a42632490172c225a8b9c3fcd5 100644 (file)
@@ -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())