Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp216015iol; Sat, 11 Jun 2022 02:30:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyVQRJ9X/ly+6O67i8HT1nnjsCqKTA/jqdbTFG7BMEAEClLYpTElpr/3XFLvvkfazkUw5K X-Received: by 2002:a63:f09:0:b0:3fd:7e20:6508 with SMTP id e9-20020a630f09000000b003fd7e206508mr31094637pgl.32.1654939807808; Sat, 11 Jun 2022 02:30:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654939807; cv=none; d=google.com; s=arc-20160816; b=JJZrSC/uNUjcQFFhfu8bP59BGzozcA7MFOgEOf1inyMAFxXWr7odxJ3kG5JVl4+G4j cgEqn301gB3xTvFZQqlXUJneOLI6KgUeGMvVbjq2bgTflAWE9HW9d9qPb5VxQoX9X/4R Z0PKIAxVktHNyA0LNGuAvvgHRdcRifGOr8aErgn1hOZretWJsQ7oK6qxyvEeWuegAfnT iFwyqTqwf5+Jh3lWXy83ePjh/oUMBPYbkavXFVY/nY1V6gS8/dOw60AclcN5SLT3q/Ml yF20cST3WKwghYsvYKmuQ2xUDQ7DNbMFeKEmu+7Deg8zAItVyQbvBr3BLtxfJSDfS6J5 31jg== 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 :message-id:date:subject:cc:to:from; bh=jC+NDQQbvQmR83z83ogKSEXlDir3SGWs+yqSyI1wM04=; b=R6BQ08N7SSW/DbJBSFgUZPBetx82DPe2q+OWijn10CtJ1VjwlK9rbgHtc7fVON+m7Q dm4NzFDM51zWYmOpVoX+gCoJGmFxNcgcvxK6k9IqGy8YDiAXvGN9ZvTeKZ139UZFPMaM TBlmewWY1WN3JIojvhWzh6NvZJzdLexikA3QOS5K+ylT4gPtmJ+Cxak8wOnIERgsnKZQ dxBjKkEXc9kJRykWFa7//8ammVAQbz65B1Zqd8/UzNqqpCBxM5qTYC8EVkmMLzeNAtHK pkGLkHAGjAxlxql+IHf1RiW2cC7xftGi55De6SsPwfd6NQ3/Qa0VgQIivZoj+BrPsVLG ltZQ== 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n3-20020a170902d2c300b0015ec0ebd289si2234206plc.211.2022.06.11.02.29.55; Sat, 11 Jun 2022 02:30:07 -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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231655AbiFKIrf (ORCPT + 99 others); Sat, 11 Jun 2022 04:47:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231562AbiFKIrc (ORCPT ); Sat, 11 Jun 2022 04:47:32 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F6045F67 for ; Sat, 11 Jun 2022 01:47:29 -0700 (PDT) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.55]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4LKry66MlRz1K96X; Sat, 11 Jun 2022 16:45:34 +0800 (CST) Received: from huawei.com (10.175.124.27) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Sat, 11 Jun 2022 16:47:26 +0800 From: Miaohe Lin To: CC: , , , , , , , , , , , Subject: [PATCH 0/7] A few cleanup patches for khugepaged Date: Sat, 11 Jun 2022 16:47:24 +0800 Message-ID: <20220611084731.55155-1-linmiaohe@huawei.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.124.27] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,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: X-Mailing-List: linux-kernel@vger.kernel.org Hi everyone, This series contains a few cleaup patches to remove unneeded return value, use helper macro, fix typos and so on. More details can be found in the respective changelogs. Thanks! Miaohe Lin (7): mm/khugepaged: remove unneeded shmem_huge_enabled() check mm/khugepaged: stop swapping in page when VM_FAULT_RETRY occurs mm/khugepaged: trivial typo and codestyle cleanup mm/khugepaged: minor cleanup for collapse_file mm/khugepaged: use helper macro __ATTR_RW mm/khugepaged: remove unneeded return value of khugepaged_add_pte_mapped_thp() mm/khugepaged: try to free transhuge swapcache when possible include/linux/swap.h | 5 +++ mm/khugepaged.c | 85 +++++++++++++++++++------------------------- mm/swap.h | 5 --- 3 files changed, 41 insertions(+), 54 deletions(-) -- 2.23.0