Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp752406rwb; Fri, 13 Jan 2023 03:52:13 -0800 (PST) X-Google-Smtp-Source: AMrXdXv8Tq/qFxknAB656sn/xOQwdxr8eI64AdBmXEDlGZ+Q/S5dpUWHLj5IEBZd5txfPHHM2U1Y X-Received: by 2002:a17:907:674f:b0:864:e562:c427 with SMTP id qm15-20020a170907674f00b00864e562c427mr6727159ejc.48.1673610733011; Fri, 13 Jan 2023 03:52:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673610732; cv=none; d=google.com; s=arc-20160816; b=0WOqaqGcObORV2syY5S5mgWut50XOXcml+qYfkXpci53mR/p1LytgJS13NimjAUEY/ TMlwSmDNYKSvzC7TXZ5quATAXzTDr+6jvSxEc1c6uO03gYIGk4IVgvp9DoYMZzRNzEZX k50yF/reA/ndgG/WWpQCv9wjAwM9eSe/ir3yS7PNuO4kA80/x5XRFZxS2mcJ4nBHGsm5 Z7ZO5rgVewU/UM2unLfCUBK/vQCpGdtGTR71uEGTnakKWw7GgZZqtr+8uZwiwlXSPuBG 5JwX7CYJ+cSASV3vBtUFmIMULC9sRSoKf8CjRs7xVlbnrnGvWf3KJmoM1q3puveb9TTx AbMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-signature; bh=fWMF6ZUA5DiNQ+vW0F4WrqZDdOO5RKO0kvQA67ItQAw=; b=Km0gohRn9SZcDPKA3xFG1rksvoodegFFWNzCZuB+WMW7WCcMMIG0C7M2dlMjyH7vjT SkwEtNI35hMMtGVtpxhGsgiv4eDlEgnAHzvoMvBDNsFRGD7supBGsoJo3EcYaXr83Wnd RBK42QG0ok1LuEk7zJzRyGWdbB+T6PlLdTu1q2YZORbwlcqESKgmAtF9qaGnyBjcoPnV Rvoa1U+XQj2kNHmYMMrSmDcCPnfFz6tMqszYgB9TcCKpXiQ7qUtm78U4a6VayZ0HquXF 25xnjz3Vle2rhFiVcD4Tt98Ym6ynZitvdTDod07zkoDUdYulC7EmDNxVHoGB8Tna/jqC IBxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=r4RgcOgN; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=7ND6idC7; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gb27-20020a170907961b00b0084c7e7eb6fdsi23053096ejc.131.2023.01.13.03.52.00; Fri, 13 Jan 2023 03:52:12 -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=@suse.cz header.s=susede2_rsa header.b=r4RgcOgN; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=7ND6idC7; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239173AbjAMLfM (ORCPT + 52 others); Fri, 13 Jan 2023 06:35:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241219AbjAMLdh (ORCPT ); Fri, 13 Jan 2023 06:33:37 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 337F25FA5 for ; Fri, 13 Jan 2023 03:20:54 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id D8A105FD96; Fri, 13 Jan 2023 11:20:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1673608852; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fWMF6ZUA5DiNQ+vW0F4WrqZDdOO5RKO0kvQA67ItQAw=; b=r4RgcOgN/mqUdk13Kd/S8GP37pZxZHssQLb+S4uLnF/4Zelqq5Xelquxyb2XjEio/XgXxN NEe3yzaWge+PZn6op6GzCT0JMY2j2HsyGn12w0GDxGD7Zc3HNWk5POvmv6zN8JhXK+nXZn WwlrCAWzfUoi4yRAduWYg4+spHMZt0k= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1673608852; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fWMF6ZUA5DiNQ+vW0F4WrqZDdOO5RKO0kvQA67ItQAw=; b=7ND6idC7sKObrIb3mHffYA9ENTIQGYtr00oCiPDC5ibUzvtQabv/oelwXoZ72EJe5xo+D+ Mpi6PUECRNjSR6AA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id B1CD11358A; Fri, 13 Jan 2023 11:20:52 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id pbW9KpQ+wWNtMAAAMHmgww (envelope-from ); Fri, 13 Jan 2023 11:20:52 +0000 Message-ID: <2d656d51-a0ce-88bc-529e-e254defdc421@suse.cz> Date: Fri, 13 Jan 2023 12:20:52 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH V2] mm/slab.c: Delete the if statement Content-Language: en-US To: David Rientjes , lvqian Cc: cl@linux.co, penberg@kernel.org, kim@lge.com, akpm@linux-foundation.org, roman.gushchin@linux.dev, 42.hyeyoo@gmail.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20230111092744.112038-1-lvqian@nfschina.com> <1848b8d7-f40e-1851-b2b1-68c3df8f0bb7@google.com> From: Vlastimil Babka In-Reply-To: <1848b8d7-f40e-1851-b2b1-68c3df8f0bb7@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_SOFTFAIL 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 1/13/23 00:53, David Rientjes wrote: > 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. Right, also changed subject to: mm/slab.c: cleanup is_debug_pagealloc_cache() Function could be inline, but no strong preference. Good point, did that too. Added to slab/for-6.3/cleanups Thanks.