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 2B070C072A2 for ; Sat, 18 Nov 2023 02:33:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232858AbjKRCdK (ORCPT ); Fri, 17 Nov 2023 21:33:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229789AbjKRCdJ (ORCPT ); Fri, 17 Nov 2023 21:33:09 -0500 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E612D5C for ; Fri, 17 Nov 2023 18:33:05 -0800 (PST) Received: from dggpemm100001.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4SXHl52VTGzNm7S; Sat, 18 Nov 2023 10:28:49 +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; Sat, 18 Nov 2023 10:33:02 +0800 From: Kefeng Wang To: Andrew Morton CC: , , Matthew Wilcox , David Hildenbrand , Sidhartha Kumar , Vishal Moola , Kefeng Wang Subject: [PATCH v3 0/5] mm: cleanup and use more folio in page fault Date: Sat, 18 Nov 2023 10:32:27 +0800 Message-ID: <20231118023232.1409103-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: dggems702-chm.china.huawei.com (10.3.19.179) 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 Rename page_copy_prealloc() to folio_prealloc(), which is used by more functions, also do more folio conversion in page fault. v3: - drop patch6 as Small-sized THP for anon will change anon allocation - correct do_cow_page to do_cow_fault in subject and changlog - add RB of Vishal v2: - add folio_test_large check in ksm_might_need_to_copy() and replace page->index to folio->index, per David, Matthew - add RB of Sidhartha Kefeng Wang (5): mm: ksm: use more folio api in ksm_might_need_to_copy() mm: memory: use a folio in validate_page_before_insert() mm: memory: rename page_copy_prealloc() to folio_prealloc() mm: memory: use a folio in do_cow_fault() mm: memory: use folio_prealloc() in wp_page_copy() include/linux/ksm.h | 4 ++-- mm/ksm.c | 39 ++++++++++++++++-------------- mm/memory.c | 58 +++++++++++++++++++++------------------------ 3 files changed, 50 insertions(+), 51 deletions(-) -- 2.27.0