Message ID | 20230804110454.2935878-8-shikemeng@huaweicloud.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6358:419:b0:139:fa0d:b2d with SMTP id 25csp779335rwd; Thu, 3 Aug 2023 20:56:57 -0700 (PDT) X-Google-Smtp-Source: APBJJlFKNhjAMyMISR7833Mii9Ynua65OOMxlZsTFqPqKrChwNetZxk1LL3KgR4UfR5RlUwa/5Un X-Received: by 2002:a05:6a20:841f:b0:133:6e3d:68cd with SMTP id c31-20020a056a20841f00b001336e3d68cdmr26442751pzd.3.1691121417405; Thu, 03 Aug 2023 20:56:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691121417; cv=none; d=google.com; s=arc-20160816; b=rb+W/FlkKtf1Msfo6Y4vcYkddIU3vEp4UW6pi9/Ahno07o5czx/LYg7RVfymfYltBV vbDSF2/JdG/c+E/CDMUdd+La9zMqxfMpp1KOnfKONo6ahg8YtDrGBMVXl5fy9g42e9bA CCZcdDkKbEDGV7AyMtXjJRbsUx3Y169mTQgJml/z84mXfebD7nVS0n4n8b/tHTlk6oVW eYgDRiCgrOIcqd2Hw6bPmSKOMS8AkKc2NCNF3l6PHZhPCbvGSi4rG9zT0s0ykxzYy9na LfdMtJKooI6WwrLMAUDJnfTlaBusDeODzB3rn+rm8fiAnLtGyMCdOkRJ1sxC0YapQ1oI xwgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=EiwToGGBjXLMfDEMluwEr7HCCInrL4Nv0DwzKcKfLYg=; fh=zpCCF/J8Z0sUUNZfCNdnaRvm94yhXPVxl9PzV22VU6k=; b=PPguiCK3T84B75RTJj+q8Lt3wqChAEJGOlXp86PB3iQziN6YzkDr8rHMiOOVMgIxjg AzCtKU4OLPaNMy2ZY8E1AoaECIXCLlX8XAPGcZez/Xq8EONzbSRI5fB/wJeB9GqObtZD tFpD+u2Th7UcduAguoEX375ABoAEXxcSSxGcVDgVbnH89yFJUVNfXscW3eX9Z86W7iUf mbQFm00PP0U8d8jLzje7PbJkUhqSbemNE5KO5jBsvK17yGShCnXNR01p88+4KJ5oh26r NUKRFKxT1fwS1GD2T4iXtfcLY+Q3kb6mWOkA4FevWYAEBvsvJh281Ss7CMlWz5WE8+8Z g7DQ== ARC-Authentication-Results: i=1; mx.google.com; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y17-20020a63e251000000b0055befc89e11si1018868pgj.84.2023.08.03.20.56.44; Thu, 03 Aug 2023 20:56:57 -0700 (PDT) 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; 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 S233450AbjHDDFB (ORCPT <rfc822;tertiaryakionsight@gmail.com> + 99 others); Thu, 3 Aug 2023 23:05:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231269AbjHDDEy (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 3 Aug 2023 23:04:54 -0400 Received: from dggsgout11.his.huawei.com (unknown [45.249.212.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 691D6448E for <linux-kernel@vger.kernel.org>; Thu, 3 Aug 2023 20:04:44 -0700 (PDT) Received: from mail02.huawei.com (unknown [172.30.67.153]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4RH9YP56tjz4f41Tl for <linux-kernel@vger.kernel.org>; Fri, 4 Aug 2023 11:04:41 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.124.27]) by APP1 (Coremail) with SMTP id cCh0CgAXODLGasxkWSvZOg--.12542S9; Fri, 04 Aug 2023 11:04:42 +0800 (CST) From: Kemeng Shi <shikemeng@huaweicloud.com> To: linux-mm@kvack.org, linux-kernel@vger.kernel.org, akpm@linux-foundation.org, baolin.wang@linux.alibaba.com, mgorman@techsingularity.net, david@redhat.com Cc: shikemeng@huaweicloud.com Subject: [PATCH v3 7/8] mm/compaction: remove unnecessary return for void function Date: Fri, 4 Aug 2023 19:04:53 +0800 Message-Id: <20230804110454.2935878-8-shikemeng@huaweicloud.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20230804110454.2935878-1-shikemeng@huaweicloud.com> References: <20230804110454.2935878-1-shikemeng@huaweicloud.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: cCh0CgAXODLGasxkWSvZOg--.12542S9 X-Coremail-Antispam: 1UD129KBjvdXoWrtryxtr1UAF4UZry3Kr1UAwb_yoWDCFX_Jr 10yrWSq3yYvr18AFsxCa1S9rykGF4DCr1aqa1UXF1fAa4qya1vv3s7Zr13XrWYqasrur9x G3WkZFsFkF1a9jkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbDAFF20E14v26rWj6s0DM7CY07I20VC2zVCF04k26cxKx2IYs7xG 6rWj6s0DM7CIcVAFz4kK6r1j6r18M280x2IEY4vEnII2IxkI6r1a6r45M28IrcIa0xkI8V A2jI8067AKxVWUAVCq3wA2048vs2IY020Ec7CjxVAFwI0_Xr0E3s1l8cAvFVAK0II2c7xJ M28CjxkF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVWDJVCq3wA2z4x0Y4vE2I x0cI8IcVCY1x0267AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVAFwI0_GcCE3s1l84ACjcxK 6I8E87Iv6xkF7I0E14v26rxl6s0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4 xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1j6r18McIj6I8E87Iv67AKxVWUJVW8 JwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41lF7I21c0EjII2zVCS5cI20V AGYxC7MxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAF wI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUAVWUtwCIc4 0Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1I6r4UMIIF0xvE2Ix0cI8IcVCY1x0267AK xVWxJVW8Jr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r1j6r 4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x0pRvJPtU UUUU= X-CM-SenderInfo: 5vklyvpphqwq5kxd4v5lfo033gof0z/ X-CFilter-Loop: Reflected X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_00,DATE_IN_FUTURE_06_12, MAY_BE_FORGED,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773269331293735505 X-GMAIL-MSGID: 1773269331293735505 |
Series |
Fixes and cleanups to compaction
|
|
Commit Message
Kemeng Shi
Aug. 4, 2023, 11:04 a.m. UTC
Remove unnecessary return for void function Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com> Reviewed-by: David Hildenbrand <david@redhat.com> Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com> --- mm/compaction.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/mm/compaction.c b/mm/compaction.c index 9022209b64c3..81be1d0b9622 100644 --- a/mm/compaction.c +++ b/mm/compaction.c @@ -1445,8 +1445,6 @@ fast_isolate_around(struct compact_control *cc, unsigned long pfn) /* Skip this pageblock in the future as it's full or nearly full */ if (start_pfn == end_pfn) set_pageblock_skip(page); - - return; } /* Search orders in round-robin fashion */ @@ -2900,7 +2898,7 @@ int compaction_register_node(struct node *node) void compaction_unregister_node(struct node *node) { - return device_remove_file(&node->dev, &dev_attr_compact); + device_remove_file(&node->dev, &dev_attr_compact); } #endif /* CONFIG_SYSFS && CONFIG_NUMA */