From mboxrd@z Thu Jan 1 00:00:00 1970 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 ADC66C4332F for ; Mon, 21 Nov 2022 02:02:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229795AbiKUCCC (ORCPT ); Sun, 20 Nov 2022 21:02:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229645AbiKUCB7 (ORCPT ); Sun, 20 Nov 2022 21:01:59 -0500 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BCE018B35 for ; Sun, 20 Nov 2022 18:01:58 -0800 (PST) Received: by mail-pj1-x1034.google.com with SMTP id q96-20020a17090a1b6900b00218b8f9035cso792942pjq.5 for ; Sun, 20 Nov 2022 18:01:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shopee.com; s=shopee.com; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=McRhEbkJO4TzXUeiVWCG8MYZdpyYAh/UI0V02O72ffA=; b=EbJG7unhNaF/gUyUj4qAfK00TtL1GN9HurLGl/zwYmLVMkrGvboKfJiZhuUDzo8HVA y4g5YvzbCuOaXTRNGk0BXLhhqcvvO+EXOQMryhqNuZnrnyRWRY/Qg7jXG9uT+IBH/Fh9 vgZyZxOVyJemEIdVp/5DmbICQ+iLM5CJjdh14olEhf789Z7895MyRp1MAzL9VEqbhwFf uL7X9B42yy0Fv4klFvrJReT74Vj4RVU5LiJpyWeN6yde0KuWYScOFjBMj9V/hNAHtrWT cZ5roky2c4+Nave/IzprJPWNOiBJeduXVBBmBCY7qzwBnBbyZDlPAkcMbJQFmfWwTW5U Wk9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=McRhEbkJO4TzXUeiVWCG8MYZdpyYAh/UI0V02O72ffA=; b=xflBR2VhrUjRU3R98iSz/7XpqFx/xDlSTXyxbTgT6K2M1qJXIRZEFyeEsIq2UYeRe/ pv3nhmgcEJfCzh0WVzZUwlCZie6E/DNOrekS77PVn0R2M7j9r8SJCyPiYC7WC0H+XqoR 7/DgeDcYGyPlH+g5wnNPwmcsDLXNt3WTU0H4BDDsK3AEhPK4okWRr7b1mvgbD0WqWYhZ +Td88ZiFbrATjgI4JF/Eay9yxDgL2/PfNnhyvDf+TP+GrRMgIYY+8OV6jPXXlG54UZdP /DxTwO1cxUAQmDfsB/ieO1oxow0iSRFr/Ac7e+bRcXJMhlNeyv/c76bns9h8uHWiLzI6 KDPQ== X-Gm-Message-State: ANoB5pmfQsix3f/si9yIFcTKc6Q6huj+0YXcLMG643BY/N2KJTlqjzx3 NjtkpWdOxgy8FXHKsSQvWEdfvA== X-Google-Smtp-Source: AA0mqf7DPvc8+2WmXr/6xGH6mpfr9RtNtSowWIqlpbC9fJR762IDW9tBW9tgSCDaqZuFlaEZ/DECrw== X-Received: by 2002:a17:902:ca92:b0:17f:7f60:480a with SMTP id v18-20020a170902ca9200b0017f7f60480amr1100591pld.145.1668996117484; Sun, 20 Nov 2022 18:01:57 -0800 (PST) Received: from [10.54.24.49] ([143.92.118.2]) by smtp.gmail.com with ESMTPSA id m13-20020a170902db0d00b00188767268ddsm8271223plx.151.2022.11.20.18.01.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 20 Nov 2022 18:01:57 -0800 (PST) Message-ID: <191a3853-70c5-b89e-0911-e046207876e5@shopee.com> Date: Mon, 21 Nov 2022 10:01:52 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: [PATCH] cgroup: Fix typo in comment To: Kamalesh Babulal , tj@kernel.org Cc: lizefan.x@bytedance.com, hannes@cmpxchg.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org References: <20221120155134.57193-1-haifeng.xu@shopee.com> <819bdb10-2569-b7b1-b75b-168b77d1959f@oracle.com> From: Haifeng Xu In-Reply-To: <819bdb10-2569-b7b1-b75b-168b77d1959f@oracle.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022/11/21 00:38, Kamalesh Babulal wrote: > > > On 11/20/22 21:21, haifeng.xu wrote: >> Replace iff with if. >> >> Signed-off-by: haifeng.xu >> --- >> kernel/cgroup/cgroup.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c >> index f2743a476190..93c5e50b1392 100644 >> --- a/kernel/cgroup/cgroup.c >> +++ b/kernel/cgroup/cgroup.c >> @@ -814,7 +814,7 @@ static bool css_set_populated(struct css_set *cset) >> * One of the css_sets associated with @cgrp is either getting its first >> * task or losing the last. Update @cgrp->nr_populated_* accordingly. The >> * count is propagated towards root so that a given cgroup's >> - * nr_populated_children is zero iff none of its descendants contain any >> + * nr_populated_children is zero if none of its descendants contain any >> * tasks. >> * >> * @cgrp's interface file "cgroup.populated" is zero if both > > iff abbreviates to if and only if and it's a valid usage. > Ok, thanks.