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 4D3DAC41535 for ; Fri, 3 Nov 2023 14:03:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377767AbjKCODu (ORCPT ); Fri, 3 Nov 2023 10:03:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233674AbjKCODs (ORCPT ); Fri, 3 Nov 2023 10:03:48 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34209D4D; Fri, 3 Nov 2023 07:03:45 -0700 (PDT) Received: from dggpemm100001.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4SMMpG1TbrzrSJv; Fri, 3 Nov 2023 22:00:38 +0800 (CST) Received: from localhost.localdomain (10.175.112.125) by dggpemm100001.china.huawei.com (7.185.36.93) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Fri, 3 Nov 2023 22:03:42 +0800 From: Kefeng Wang To: Andrew Morton CC: , , Matthew Wilcox , David Hildenbrand , , Kefeng Wang Subject: [PATCH rfc 00/18] mm: convert to use folio mm counter Date: Fri, 3 Nov 2023 22:01:01 +0800 Message-ID: <20231103140119.2306578-1-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.112.125] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpemm100001.china.huawei.com (7.185.36.93) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert mm counter page functions to folio ones. mm_counter() -> mm_counter_folio() mm_counter_file() -> mm_counter_file_folio() Maybe it's better to rename folio mm counter function back to mm_counter() and mm_counter_file() after all conversion? Kefeng Wang (18): mm: add mm_counter_folio() and mm_counter_file_folio() uprobes: use mm_counter_file_folio() mm: userfaultfd: use mm_counter_folio() mm: rmap: use mm_counter_[file]_folio() mm: swap: introduce pfn_swap_entry_to_folio() mm: huge_memory: use a folio in __split_huge_pmd_locked() mm: huge_memory: use a folio in zap_huge_pmd() mm: khugepaged: use mm_counter_file_folio() in collapse_pte_mapped_thp() mm: memory: use a folio in do_set_pmd() mm: memory: use mm_counter_file_folio() in copy_present_pte() mm: memory: use mm_counter_file_folio() in wp_page_copy() mm: memory: use mm_counter_file_folio() in set_pte_range() mm: memory: use a folio in insert_page_into_pte_locked() mm: remove mm_counter_file() mm: memory: use a folio in copy_nonpresent_pte() mm: use a folio in zap_pte_range() s390: pgtable: use mm_counter_folio() in ptep_zap_swap_entry() mm: remove mm_counter() arch/s390/mm/pgtable.c | 4 +-- include/linux/mm.h | 12 +++---- include/linux/swapops.h | 13 +++++++ kernel/events/uprobes.c | 2 +- mm/huge_memory.c | 25 +++++++------ mm/khugepaged.c | 4 +-- mm/memory.c | 77 +++++++++++++++++++++++------------------ mm/rmap.c | 10 +++--- mm/userfaultfd.c | 4 +-- 9 files changed, 88 insertions(+), 63 deletions(-) -- 2.27.0