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 ECFAEC43334 for ; Tue, 28 Jun 2022 13:30:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346433AbiF1Naj (ORCPT ); Tue, 28 Jun 2022 09:30:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346256AbiF1N3w (ORCPT ); Tue, 28 Jun 2022 09:29:52 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10E352A706 for ; Tue, 28 Jun 2022 06:28:39 -0700 (PDT) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4LXQNl6WqFzkWlW; Tue, 28 Jun 2022 21:26:47 +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; Tue, 28 Jun 2022 21:28:37 +0800 From: Miaohe Lin To: CC: , , , , , , Subject: [PATCH v2 00/16] A few cleanup patches for huge_memory Date: Tue, 28 Jun 2022 21:28:19 +0800 Message-ID: <20220628132835.8925-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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi everyone, This series contains a few cleaup patches to remove duplicated codes, add/use helper functions, fix some obsolete comments and so on. More details can be found in the respective changelogs. Thanks! --- v2 This patch set is rebased on linux-next-20220628. Collect Reviewed-by tag and Acked-by per Muchun and Zach. Thanks. fix typo in 3/16 replace last parameter of touch_p[u|m]d to bool split "mm/huge_memory: minor cleanup for split_huge_pages_pid" drop "mm/huge_memory: add helper __get_deferred_split_queue" enhance comment of page_deferred_list v1 This patch set is based on linux-next-20220621. --- Miaohe Lin (16): mm/huge_memory: use flush_pmd_tlb_range in move_huge_pmd mm/huge_memory: access vm_page_prot with READ_ONCE in remove_migration_pmd mm/huge_memory: fix comment of __pud_trans_huge_lock mm/huge_memory: use helper touch_pud in huge_pud_set_accessed mm/huge_memory: use helper touch_pmd in huge_pmd_set_accessed mm/huge_memory: rename mmun_start to haddr in remove_migration_pmd mm/huge_memory: use helper function vma_lookup in split_huge_pages_pid mm/huge_memory: use helper macro __ATTR_RW mm/huge_memory: fix comment in zap_huge_pud mm/huge_memory: check pmd_present first in is_huge_zero_pmd mm/huge_memory: try to free subpage in swapcache when possible mm/huge_memory: minor cleanup for split_huge_pages_all mm/huge_memory: fix comment of page_deferred_list mm/huge_memory: correct comment of prep_transhuge_page mm/huge_memory: comment the subtly logic in __split_huge_pmd mm/huge_memory: use helper macro IS_ERR_OR_NULL in split_huge_pages_pid include/linux/huge_mm.h | 6 +-- mm/huge_memory.c | 90 +++++++++++++++++------------------------ 2 files changed, 40 insertions(+), 56 deletions(-) -- 2.23.0