Received: by 10.213.65.68 with SMTP id h4csp938228imn; Fri, 23 Mar 2018 21:58:00 -0700 (PDT) X-Google-Smtp-Source: AIpwx48kwFdrLDcBEBKkhB0XyF7VpaB02zmk2s/J5LquX6w1EkcvA0/DO2kMbQObx3X/S3imIAin X-Received: by 10.101.97.134 with SMTP id c6mr391616pgv.370.1521867480649; Fri, 23 Mar 2018 21:58:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521867480; cv=none; d=google.com; s=arc-20160816; b=yas6UekkOu2w8Nla6rKykpeShumV5xmVWvhknIimDgE8R/SPpeWWni5oJTc6Im8OJl D2MTSptUJVSwlIDrulgpMpB7QosfpponrPCclYS573lWEsrJcVLIM6OFluqE/eRj9qj9 W9Ni42Nwxr2eEpHqNvctIEOYt5GKw8yRHzdvk/YCeKufTqLqe6E04pTt6LbNEkdNLhoH vPKnL3CyeVUC+di48xghlhiIOio1hWLaU2SrWnmappxR1H5LaCL+iD4qtWoWrIR4uMvd wuwPCACYXjYnz1/tnw9fOq+i50qU5jb4QWfcpHJ64HuU81nTD6AvzeR2vMmDslUiY6g0 Xhzw== 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:subject:cc:to:from :date:content-transfer-encoding:mime-version:dkim-signature :dkim-signature:arc-authentication-results; bh=wqiZF4TPPcrK9THMPsEmbm6CXEazXMCcKwO/AsImlTs=; b=f4GTgUxFI44cUGLGTWM/B/XbOj3iSipUQeRSQpOBcos/uV8IcQOczJspvNA2T3lAfT C9xBalzC4cbo/5gyrkJFx8m5TokqfvnsAy4Eusv6w1zkQvsrwfzIYdAPPx7X33oWMksy dwnh1zm8MnXtv2i/tTciK0QaF3CFIbWfDtBtQMXvH15P0yZE5xAVvMcxiPOu2kPUFC/u VAzXPRGMydU541bqo/+4JEpFk9SPDKYveIJMSBYgeaZMorKq+lKHZO6A1sRl9C3zu8xW Rt3aEQG32wnZtBWjOGI/9vUMJXognZOuTATKyVMQvtg94fn4GU6YlRYz3JPgFae2vFYZ ZrZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=pAcTrPUP; dkim=pass header.i=@codeaurora.org header.s=default header.b=kZUldzfV; 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 m9-v6si9704510plt.6.2018.03.23.21.57.44; Fri, 23 Mar 2018 21:58:00 -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=pAcTrPUP; dkim=pass header.i=@codeaurora.org header.s=default header.b=kZUldzfV; 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 S1751007AbeCXE4v (ORCPT + 99 others); Sat, 24 Mar 2018 00:56:51 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:44130 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750730AbeCXE4t (ORCPT ); Sat, 24 Mar 2018 00:56:49 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 39EFE60817; Sat, 24 Mar 2018 04:56:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1521867409; bh=sq1sm22mzHkGWaiXLlZ8nOeRSW5L49tLjX22ZgNxl+c=; h=Date:From:To:Cc:Subject:From; b=pAcTrPUPr5qWkHskOzWsFzI9YArGrIh8e8ukGAnw7z2sVsNihuibU982MdxF/R3oU bWGvQGZC6PCrGMNC0PwjtaSC6zkdioJLQTJu90EPJDFiNarLp05ZMPviIjfPCElzez cJnFVFRrRW+dVgauTPZZ57GWc5I5GLnkqMViEKSM= 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 879F260312; Sat, 24 Mar 2018 04:56:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1521867408; bh=sq1sm22mzHkGWaiXLlZ8nOeRSW5L49tLjX22ZgNxl+c=; h=Date:From:To:Cc:Subject:From; b=kZUldzfVru5HjAKtcq7syG3JYj/FhLv5Dg7sNEOSeZLbiwqplDi2K67PNSRmFl93U SN/Qqpcb6ZXG6Mkpe2xhiM2uRi8quvKUk41KbRcrf1YFJdzaKMkh229slT7WCQ8a42 pZPZK90Lp7lkPrreeOUV1yjog1e1wb3dZXhvUoUI= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Sat, 24 Mar 2018 12:56:48 +0800 From: yuankuiz@codeaurora.org To: cgroups@vger.kernel.org, tj@kernel.or, lizefan@huawei.com, hannes@cmpxchg.org Cc: linux-kernel@vger.kernel.org, pkondeti@codeaurora.org Subject: [PATCH]cgroup: __cpuset_node_allowed return bool Message-ID: 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 as a bool, __cpuset_node_allowed(...) return should be bool. Signed-off-by: John Zhao --- kernel/cgroup/cpuset.c.orig 2018-03-24 12:39:27.854178608 +0800 +++ kernel/cgroup/cpuset.c 2018-03-24 12:40:51.020708670 +0800 @@ -2552,7 +2552,7 @@ static struct cpuset *nearest_hardwall_a 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())