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 632C6C433F5 for ; Mon, 9 May 2022 11:39:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233081AbiEILnp (ORCPT ); Mon, 9 May 2022 07:43:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232592AbiEILna (ORCPT ); Mon, 9 May 2022 07:43:30 -0400 Received: from mail.nfschina.com (unknown [IPv6:2400:dd01:100f:2:72e2:84ff:fe10:5f45]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 14E3D20F4DB for ; Mon, 9 May 2022 04:39:36 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id 780EB1E80D70; Mon, 9 May 2022 19:34:27 +0800 (CST) X-Virus-Scanned: amavisd-new at test.com Received: from mail.nfschina.com ([127.0.0.1]) by localhost (mail.nfschina.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OL22kQYy3_7T; Mon, 9 May 2022 19:34:25 +0800 (CST) Received: from localhost.localdomain (unknown [219.141.250.2]) (Authenticated sender: kunyu@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id E408D1E80D6B; Mon, 9 May 2022 19:34:24 +0800 (CST) From: Li kunyu To: peterz@infradead.org Cc: akpm@linux-foundation.org, bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, kunyu@nfschina.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, luto@kernel.org, mingo@redhat.com, tglx@linutronix.de, x86@kernel.org Subject: Re: [PATCH] mm: Functions may simplify the use of return values Date: Mon, 9 May 2022 19:39:19 +0800 Message-Id: <20220509113920.125795-1-kunyu@nfschina.com> X-Mailer: git-send-email 2.18.2 In-Reply-To: <20220509071924.GF76023@worktop.programming.kicks-ass.net> References: <20220509071924.GF76023@worktop.programming.kicks-ass.net> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I estimate that this function should not add code in the next year or two. I consider and optimize this function in terms of code execution efficiency. There may be a better way.