Received: by 10.213.65.68 with SMTP id h4csp942207imn; Fri, 23 Mar 2018 22:07:01 -0700 (PDT) X-Google-Smtp-Source: AG47ELuXoP9P1mokCDz8VErnJoIm5mhuvOUQDHZYSb8X3c1aKNAkjGi3nRSM7PRmWIvhtiBZWVs9 X-Received: by 10.98.214.218 with SMTP id a87mr18089597pfl.124.1521868021857; Fri, 23 Mar 2018 22:07:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521868021; cv=none; d=google.com; s=arc-20160816; b=JdMIwa/sh3Nfwx5o8UqjyWyvd3cdhDH4si78d8exgB9eKRA51YgfsBLs2ZvGikmHqg s9kk2D2I7jHLRPJLYbDykN9EknnKBTJvgQ+OMPa+E5gaDicqdRklCStxkwC2Ry/6XQDN ye0vtu2N0k45g46DyAZ9djfLjdRupk1JsZmqH3JAetNZkw8lCH0wKDIKD/YiNWL7xTVs JtBJkvNla4ie3xfzH3FG4ETMhLXvJq5WTtRvDrA5DhX6bGR9mqBs/bIGuHaG+guS0hdN I+15dlEjtDSiGT+SmjJjBIAQaUVYGcyiW9dkbWRnqH2q28MQ7eUPeCVJCD+rFO6EusuR EVVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=QaWVXsjtgYewmtAVVHyBAy+hzk21i3L+pbL4zM5LC2M=; b=tKcsC1Rq+y2PbydUDPbAmpBUkjuwjhwetRKDUFZnrcFiym4D8woXkWS/U2mHEw+kMz bMlOYAqCE7cjn9SKYO59WiiayQ1yOtCLFbeQFwT6OKIYjo+HIGnhRWIO5jVP8M8u/dhR Dts1eq9YV+FzstYf3Nj68hx4kb52pwdjcMRd6RFSC+vMBJZbglgOZguy9XO5Z8JXUI3h TAFJu/fQxXWjHWd57ZZwBzPAeiQPC9sXeGbOY+webQhE8oSQUpKnn1fWDN5Bsz0NfBch QRB86jjJFZQErggUvBkKRREcVyQ4X08BekSm+MuS+u9EbdaGDoZVrlaD07YA8+u5ZsHv T+nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=YnTiNzi7; dkim=pass header.i=@codeaurora.org header.s=default header.b=YnTiNzi7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f35-v6si10028671plh.394.2018.03.23.22.06.46; Fri, 23 Mar 2018 22:07:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=YnTiNzi7; dkim=pass header.i=@codeaurora.org header.s=default header.b=YnTiNzi7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750865AbeCXFFw (ORCPT + 99 others); Sat, 24 Mar 2018 01:05:52 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:45798 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750734AbeCXFFv (ORCPT ); Sat, 24 Mar 2018 01:05:51 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id CA54060817; Sat, 24 Mar 2018 05:05:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1521867950; bh=JNT26J/WRwrXMWO/PF2FDpOPKqbjgeb39zBVRAy4AEs=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=YnTiNzi7oex7kBQOa05Tw/35GWaHulGm3s+VRCY8Ln4yHU7lFAEtplYmsZxTUikrd sxu5s5zMgrkMmAMvj1lehlX4UWuzq7uf8PsZnxl73bYGwxE3VNRYSx2dudBTKWPZdJ lmqsbzTV+TPBpmWFRJ1EJ4KEKnH23/LViwG48qak= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id 0CE4C60240; Sat, 24 Mar 2018 05:05:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1521867950; bh=JNT26J/WRwrXMWO/PF2FDpOPKqbjgeb39zBVRAy4AEs=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=YnTiNzi7oex7kBQOa05Tw/35GWaHulGm3s+VRCY8Ln4yHU7lFAEtplYmsZxTUikrd sxu5s5zMgrkMmAMvj1lehlX4UWuzq7uf8PsZnxl73bYGwxE3VNRYSx2dudBTKWPZdJ lmqsbzTV+TPBpmWFRJ1EJ4KEKnH23/LViwG48qak= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Sat, 24 Mar 2018 13:05:50 +0800 From: yuankuiz@codeaurora.org To: cgroups@vger.kernel.org, tj@kernel.org, lizefan@huawei.com, hannes@cmpxchg.org Cc: linux-kernel@vger.kernel.org, pkondeti@codeaurora.org, cgroups-owner@vger.kernel.org Subject: Re: [PATCH]cgroup: __cpuset_node_allowed return bool In-Reply-To: References: Message-ID: <0fee75e4a1b12f5fca30e04306a95788@codeaurora.org> X-Sender: yuankuiz@codeaurora.org User-Agent: Roundcube Webmail/1.2.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From 304cec1cc42255fbd9e231a810f4eea20ab74b90 Mon Sep 17 00:00:00 2001 From: John Zhao Date: Sat, 24 Mar 2018 13:01:32 +0800 Subject: [PATCH] cgroup: __cpuset_node_allowed return bool as a bool, __cpuset_node_allowed(...) return should be bool. Signed-off-by: John Zhao --- 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 b42037e..42338b7 100644 --- a/kernel/cgroup/cpuset.c +++ b/kernel/cgroup/cpuset.c @@ -2552,7 +2552,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.7.4