summaryrefslogtreecommitdiffstats
path: root/kernel/cgroup/cpuset.c
diff options
context:
space:
mode:
authorQi Zheng <zhengqi.arch@bytedance.com>2021-12-19 10:41:54 +0800
committerTejun Heo <tj@kernel.org>2022-01-07 12:05:52 -1000
commitd4296faebd337e5f76c0fddb815de33d2b0ad118 (patch)
treed0638f3a92deb4b54ebcfe0f7f7072f47c06abc3 /kernel/cgroup/cpuset.c
parentf5f60d235e7058da13a643c33fc7599c05ec0b73 (diff)
downloadlinux-stable-d4296faebd337e5f76c0fddb815de33d2b0ad118.tar.gz
linux-stable-d4296faebd337e5f76c0fddb815de33d2b0ad118.tar.bz2
linux-stable-d4296faebd337e5f76c0fddb815de33d2b0ad118.zip
cpuset: convert 'allowed' in __cpuset_node_allowed() to be boolean
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>
Diffstat (limited to 'kernel/cgroup/cpuset.c')
-rw-r--r--kernel/cgroup/cpuset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/cgroup/cpuset.c b/kernel/cgroup/cpuset.c
index 0dd7d853ed17..dc653ab26e50 100644
--- a/kernel/cgroup/cpuset.c
+++ b/kernel/cgroup/cpuset.c
@@ -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())