Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E7477C433F5 for ; Sun, 19 Dec 2021 02:42:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229694AbhLSCmL (ORCPT ); Sat, 18 Dec 2021 21:42:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229565AbhLSCmJ (ORCPT ); Sat, 18 Dec 2021 21:42:09 -0500 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1A41C06173E for ; Sat, 18 Dec 2021 18:42:08 -0800 (PST) Received: by mail-pj1-x1036.google.com with SMTP id iy13so468709pjb.5 for ; Sat, 18 Dec 2021 18:42:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1fCDnzs11QBF/HgkFGJOxPwWBFoX6qDm6eKaoQut7Fg=; b=u385DoqLNxdGOTSHTYc/tJNFZZ1KR5LO4JfCZc8oc2ITGuRYg01B992ZOPe2SZHECt ucGsrko12/gWUNGpwPEqTUnUT9i75KKR2zCkUOJv+rGJ+PkuGN3LscQYCrS6ny0HS3cu AuhXPWp3EcbWy2hBuND6IYJp079NG7jcZUqbYrBqdrXeIlK1WCrfi/yxi+qPOdpGIZdP y3B5HeRMLbJ5PBxmcSRpKglfmI0mFRuGXtjqqowILph1dorR3MABpJFveEHLlYQkykHS ThZB44WazlXOe/rKp2DXaFy1TUTNSpd7fwlpJqzo9KnWfcvh9YfBniBJGyJ/rPhLFHD5 wCGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1fCDnzs11QBF/HgkFGJOxPwWBFoX6qDm6eKaoQut7Fg=; b=wUv+9iBsG8lD+X2B6kcUW0nLdAF3JFu6F+6RA3PyxB/CxRVS2Pgep78f6PNpA7UeRC Ky8ZsLp3Bjza0jkbqp63OlFKImtbCbArtiB9RuaTeJ1D9VGvYl0Bd6Yvb7cUJJaTzrKW zhZsgbWQs/+6DwUtIUj6gB6Vxep+5dfxkc4slll004ciqHzfI9CHZZVHvCnt+FiRz3Pw GtqAm36XaP4FsWNuK7HhODdk9IV9TZuqEWYQzsHluoZMNbubzR+mxOBFR6IVvdJuJgyq C0X2jEQW9NMVbHKxNv/gCSQlbrSyKF2X9sy5bhNb4Y9DewkjtFlL9mKlFHBSxBsIUzBV XJIA== X-Gm-Message-State: AOAM530/yAcUjvi9c2auUgF819FDPVj4ygzg+OkXy0P1ZHSCurVMF6yW oZZzlihgNUen5MYhkEqJeMFEfQ== X-Google-Smtp-Source: ABdhPJxk/oVPS0gygqoiITAj+VMP6vtxy4gQJ1MgcFYsT1CEkq/FsylJcLjy2YKSwOBAC1ZGZWuhAA== X-Received: by 2002:a17:90b:3a86:: with SMTP id om6mr5386779pjb.16.1639881728052; Sat, 18 Dec 2021 18:42:08 -0800 (PST) Received: from localhost.localdomain ([139.177.225.247]) by smtp.gmail.com with ESMTPSA id y191sm13223415pfb.124.2021.12.18.18.42.05 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 18 Dec 2021 18:42:07 -0800 (PST) From: Qi Zheng To: lizefan.x@bytedance.com, tj@kernel.org, hannes@cmpxchg.org Cc: cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, Qi Zheng Subject: [PATCH] cpuset: convert 'allowed' in __cpuset_node_allowed() to be boolean Date: Sun, 19 Dec 2021 10:41:54 +0800 Message-Id: <20211219024154.28853-1-zhengqi.arch@bytedance.com> X-Mailer: git-send-email 2.24.3 (Apple Git-128) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- kernel/cgroup/cpuset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) -- 2.11.0