Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp75721rwb; Thu, 12 Jan 2023 16:12:56 -0800 (PST) X-Google-Smtp-Source: AMrXdXskT02cPQT5AnXiKhhcJEDLVR3INbmNm/JZ3K1Ua4D1oydtdPE17y0rlFnUYtn3/rjLlsKA X-Received: by 2002:a05:6402:2d9:b0:496:3f98:dbb7 with SMTP id b25-20020a05640202d900b004963f98dbb7mr21476735edx.14.1673568776692; Thu, 12 Jan 2023 16:12:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673568776; cv=none; d=google.com; s=arc-20160816; b=OsMj5r4Il3G+9sLPrw/dzep1oT00P6Zk5u2Yqo7874ebsxxWV1VPm93my+AfiN/s/i yRdkpXWCG6Ot4BRn+ptjTIQJg+nMKZV0l8V6ndfgB3RHWSSbMrqQ8Zzl1Fo8JwF4YWnE qlAzUAGX1l5hW8Rc5GGpFBZxEI70bq+PyEcBon7a6pILSdkfoNI8sSij93o9SUjxkv3i /TqbmV6WPMUH4DduSzp51PGiFKefvjdnSaIL9lPf3SWCJ4jdt880LbLcGFZ9n5lY1wUY ELXYrkBwZuwBD+jb4M2el7poPYWApkteb1GUlIdg1zc72wFL0DOuA3qn8zUgKJM3XpbS ct+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=pk1WVm5dvtYH/mwajur+NJcCrYzh+DAnEkimMVIy09M=; b=fwS0kzlJwtstPtZI5tXvf9X7BE1lylpsk57JzexdrXrh4vEQFe34/s0t83G7GoYMKA SLtPUiOox16++Z9RDhH0dezV4Oh/NrItvrRrhSlMICdpPiwMGSX0vo3zE8WhxiKiYgeY 64sZX6eXCfhBNrcROp/4fktQsZ5aPUI513LWHLIHCeGNT81AV5quXaDyc2eX1UFBYZSO oqCBU76GylTFUkHrOB6ktiTSctXC+rH5d4NwLsOtVmoYGLZjnE32DPvCxoQtWvN1NXF2 NcpyV26f73Ii0O3isIpJ6Uk46cLJLDpbxb9GqDtE9TeFwbYjzlEfZ2cgks/KejtWcDab w9jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=iGBimbDp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m7-20020a056402430700b0048a8f268daesi19811616edc.453.2023.01.12.16.12.44; Thu, 12 Jan 2023 16:12:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=iGBimbDp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236952AbjALXxe (ORCPT + 50 others); Thu, 12 Jan 2023 18:53:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238170AbjALXx3 (ORCPT ); Thu, 12 Jan 2023 18:53:29 -0500 Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C19C5D684 for ; Thu, 12 Jan 2023 15:53:29 -0800 (PST) Received: by mail-pg1-x52e.google.com with SMTP id 36so13871286pgp.10 for ; Thu, 12 Jan 2023 15:53:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=pk1WVm5dvtYH/mwajur+NJcCrYzh+DAnEkimMVIy09M=; b=iGBimbDp5/PNNOdg9LFjc1OKGbXYRy6qlVh9AdxQCBMCuyFrRLrnif30WM8nsbIU0o 2PWiDbXGNVNdRq0F5Julg7piQJYnKlsnizyjMksLnezGehQCUAdKfj/4eLBEJySzoXNA p6CK39NLIxvPQkYt5XLYJ9URwxXZAVRp6pMfvIvNnUPOQjBkPX3DyUp92d6wwH9GpHNT at4j2g9Zh/b5x0r6jl2Uiw9xg/t0dBI/KthxCT7RYqyp2YQK8Lt3K+aL5LYLpSWf9rd5 VnV1jFBbo2RmcHgbn3DIAQ4d1s8muZoxS5sxbX+sVBcPIHg6v7PHXuy7uRmfSLs8fIj4 RpUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=pk1WVm5dvtYH/mwajur+NJcCrYzh+DAnEkimMVIy09M=; b=JG+5+gTjyDqQK4P9EjPqViPr8zVVoMaYRErT4Sf9cfUtLJjyOROA1DS1rhZMWzveag ZlTNofqMTh+Zy58IvhNAOOmtYlcBhJ/E0y2upLkLVSW/WqIn2UERanhSXc1gVRJQAQ5P oD17MB0JzIyKYKhD4KTzmlppHATZ4vd0zBMMrsjwe5gb1j2Fsuvox94/D3Zs6Jt45OKB Ebt1vS9LWJUTOLQARISuwhx0gM97TL9H2ogPrp4PNrrATeJm2TfqryfoweQmX0uQLYOS 8KNV8lqxKGFc3uMACWk2P8PHXt3BG17QO1VcTJPDO11JcHewHI1OlaZZdqaxZH7QNxHu yNUg== X-Gm-Message-State: AFqh2kqyCXy/LYXO7NiJk0KJOcgc+sLLLrUFglp0SX+KlmY3BhCPQYhH Egd9qk8o2Fgm5jv7zvCqmFxxbg== X-Received: by 2002:a05:6a00:a87:b0:582:13b5:d735 with SMTP id b7-20020a056a000a8700b0058213b5d735mr1107029pfl.0.1673567608463; Thu, 12 Jan 2023 15:53:28 -0800 (PST) Received: from [2620:15c:29:203:1f3b:d48c:199c:9f57] ([2620:15c:29:203:1f3b:d48c:199c:9f57]) by smtp.gmail.com with ESMTPSA id y24-20020aa79438000000b00574ebfdc721sm12861377pfo.16.2023.01.12.15.53.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Jan 2023 15:53:27 -0800 (PST) Date: Thu, 12 Jan 2023 15:53:26 -0800 (PST) From: David Rientjes To: lvqian cc: cl@linux.co, penberg@kernel.org, kim@lge.com, akpm@linux-foundation.org, vbabka@suse.cz, roman.gushchin@linux.dev, 42.hyeyoo@gmail.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V2] mm/slab.c: Delete the if statement In-Reply-To: <20230111092744.112038-1-lvqian@nfschina.com> Message-ID: <1848b8d7-f40e-1851-b2b1-68c3df8f0bb7@google.com> References: <20230111092744.112038-1-lvqian@nfschina.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 11 Jan 2023, lvqian@nfschina.com wrote: > From: lvqian > > Remove the if statement to increase code readability. > > Signed-off-by: lvqian Acked-by: David Rientjes Will rely on Vlastimil to remove the spurious tab in the commit description. Function could be inline, but no strong preference.