From patchwork Wed Jun 22 17:06:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 12891170 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id E53CBC433EF for ; Wed, 22 Jun 2022 17:06:54 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 62A3F6B00CD; Wed, 22 Jun 2022 13:06:52 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 5D9346B00CE; Wed, 22 Jun 2022 13:06:52 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4C8576B00CF; Wed, 22 Jun 2022 13:06:52 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 3D2876B00CD for ; Wed, 22 Jun 2022 13:06:52 -0400 (EDT) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay12.hostedemail.com (Postfix) with ESMTP id 0A642120EB8 for ; Wed, 22 Jun 2022 17:06:52 +0000 (UTC) X-FDA: 79606501464.19.F261C06 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by imf21.hostedemail.com (Postfix) with ESMTP id 78E261C00CB for ; Wed, 22 Jun 2022 17:06:49 +0000 (UTC) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.56]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4LSqXK6139zDsMQ; Thu, 23 Jun 2022 01:05:53 +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; Thu, 23 Jun 2022 01:06:27 +0800 From: Miaohe Lin To: CC: , , , , , Subject: [PATCH 00/16] A few cleanup patches for huge_memory Date: Thu, 23 Jun 2022 01:06:11 +0800 Message-ID: <20220622170627.19786-1-linmiaohe@huawei.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 X-Originating-IP: [10.175.124.27] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected ARC-Authentication-Results: i=1; imf21.hostedemail.com; dkim=none; spf=pass (imf21.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.189 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1655917609; h=from:from:sender:reply-to:subject:subject: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: references; bh=TaUdkC4M0lNY9zqoCtf36vXvVHd8zvGRzG0Er90m7xw=; b=skwmym5lvfGZ8IFOw/DNsn9vpokKCZT41nb5V9Ij8sRnDZAUROvdEecgR3TwxMEXFBidg8 X6vMxYR6UWRh2QMNrMiF/f3+1+f5GPOJDGJ240rpGx+4VOjTXBYmMd0az6bqgczarn/O3L NXlNvf35v3tvaEJuUD0RBQtKaa3pzKs= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1655917609; a=rsa-sha256; cv=none; b=2U2pO6wZ/BBFuGXsFV/eiX7mCNhb3DZDXI844jWpORs7YUOzydkvDDdHkZ57mL1paHISDX KSxXv16tP7kzmSIDiy0cpW8VPfhK5YAcJ7rKwpJqb1tqUWqgnbjUTWnQQptzykcbsW7lKa o87+mdL9iLX69jZv3Y9asP0JPpFYpvg= X-Stat-Signature: 5oqte83hkbd78unq9izrfr1atxj639b7 X-Rspam-User: X-Rspamd-Server: rspam07 Authentication-Results: imf21.hostedemail.com; dkim=none; spf=pass (imf21.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.189 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com X-Rspamd-Queue-Id: 78E261C00CB X-HE-Tag: 1655917609-948385 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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! --- 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: minor cleanup for 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: add helper __get_deferred_split_queue mm/huge_memory: fix comment of page_deferred_list mm/huge_memory: correct comment of prep_transhuge_page mm/huge_memory: comment the subtle logic in __split_huge_pmd include/linux/huge_mm.h | 6 +- mm/huge_memory.c | 121 ++++++++++++++++------------------------ 2 files changed, 52 insertions(+), 75 deletions(-)