From patchwork Sat Aug 17 09:51:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 13767121 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 41D5EC531DF for ; Sat, 17 Aug 2024 09:55:43 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3E4768D00D0; Sat, 17 Aug 2024 05:55:39 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 3943B8D00CF; Sat, 17 Aug 2024 05:55:39 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1741E8D00D1; Sat, 17 Aug 2024 05:55:38 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id DA4238D00CF for ; Sat, 17 Aug 2024 05:55:38 -0400 (EDT) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 983FD1405EA for ; Sat, 17 Aug 2024 09:55:38 +0000 (UTC) X-FDA: 82461280356.17.3747C36 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by imf08.hostedemail.com (Postfix) with ESMTP id 54294160025 for ; Sat, 17 Aug 2024 09:55:35 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf08.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.189 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1723888475; a=rsa-sha256; cv=none; b=ozTEjwvl1/kPVkET6L4mdXr4HHj3uWzywG7NYPDVO8wPk1moLNxinXLpLauSMgiwiogzRb GFl91TmyJNdsKUPGPjzY3PtSYyhHnLKtus/8TjWc8WAL3Ie30Q9Iun+Nk73IY9N789PFiY Uvri3Mei+rCRqg01ZMUbWVZ6agTjZmo= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf08.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.189 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1723888475; 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=WIxdv98RNSwpxc3AW8dg937ZBKSWULIYNXdPXh0fatw=; b=FMbNIbSNTtP4DDZUE9lJbZOie2txGJfORJUUPZMYxt/ArDdVV4azZFBrwCJjDZJUx9GOCI 5bmerJqjmsnSOigC5M+ZL2fiIsJ9Ag5EloSvvmSzK0pMUgvFJ7m8iZPa0ME6RHeyxVahg1 SHmxOherzZrRK9pTLFvvfKzy+/wgt5Q= Received: from mail.maildlp.com (unknown [172.19.88.105]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4WmDd73g4mzQkGH; Sat, 17 Aug 2024 17:50:51 +0800 (CST) Received: from dggpemf100008.china.huawei.com (unknown [7.185.36.138]) by mail.maildlp.com (Postfix) with ESMTPS id 2EE1D1400C9; Sat, 17 Aug 2024 17:55:29 +0800 (CST) Received: from localhost.localdomain (10.175.112.125) by dggpemf100008.china.huawei.com (7.185.36.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Sat, 17 Aug 2024 17:55:28 +0800 From: Kefeng Wang To: Andrew Morton CC: Matthew Wilcox , Alexander Viro , David Hildenbrand , Sidhartha Kumar , , Kefeng Wang Subject: [PATCH 0/5] mm: finish three more folio conversion Date: Sat, 17 Aug 2024 17:51:17 +0800 Message-ID: <20240817095122.2460977-1-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-Originating-IP: [10.175.112.125] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpemf100008.china.huawei.com (7.185.36.138) X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 54294160025 X-Stat-Signature: hb4j18ucfqzt8k19umyu9cy3kqoh3mjw X-Rspam-User: X-HE-Tag: 1723888535-865982 X-HE-Meta: U2FsdGVkX1/VC5oflcVBV9W0Wo4KPdX7GVFEe2XB3lC0y4Qmje/1QYVXit00iwRNvr5+8SkWFwLAR4JwRSFuDgpfUVbE47VRtVp56TE4HG3wPf1vCZ4cqee7hVvdb3fir4Gb1hAvdmqQvVgCv1QWZv9Bp0fTt22fkgbabMzoSYAzmWxqLwt07tzt7fp8d4elEtL2EZ53Ii3Qttgm0n6EOhKWe3yVhTPSkN0YD2wo5yFEZaKmYD14yL5apK2gpMXTqwvwXZSaqu5zPnQDFAoIp1k6Jllo+X+8ahA9wdEoBe57i6ulbb+Dk2tgMH7dAV/qzWSuGAGnQHUF90XEHO1ziTa+0SPrK7CRyrrK3jeyCLgKIUh884Hx+/tNKE1Plb/AFF9q3xCP7wjtVB58bAtNPY7VJk+8E0r6/e4Y5/h21iyCVwjNT2wMtxYXm7+nlUIKJFPjuJ6OGZ6vk4aU/x63/lGnS1EmQNYp3oEt0Tvynw2kv9GmenwdcspwbmsehIm8m4bEJlZsGGOJV/aqXplDzvn6PxtzxVYDFeW60zdyB+biHdWqc1+5j5wzr3oBbtITs59kiXFf+SVSs6fSeU2nLIl+vsykj/UczWv6lZRmLLCh2juPYysR+5XM2Wpqcr/nfqDXCIZSB7IMuJhFNQIhx1lPU8SecMEWC9cpTpD5Kcfwd3teDa2EKagIYu0GqpCcYF3wYK7D8aHWA71ENS9953W/v9fevNf7V5MoJOdkgM8MgeLKTZZKCI4BsuAP/vZqPIvM2aEhCS9e60LvbHQJtUPERkD00zRyVJOYLkfV43uGekSNAbVdias4CL+8VhvmgOzg6BeiRG0Z32BAtPZDI2OsZ7HVgXINW/d8TO2b4N6QtEirEfEjokQzBSns0flbOmKTF7KegM/IrUXN5pN79l/jQkdMwDLOCNFJInMQpBoXcBPILeyWS0whks17AMmPzTxmMK9cFvAINd7eVr8 cakQE18F P2f+p4ndrQooPAKKRI2rslXXxEQge2x39gct/W5UbINB3zTOdoB7YhhoiTp5zTI85V+nEnMQ29MZ/A/fwQLTy8WAQid0hBc4lTGkWuCapvQuwHYjX5X45NpL0j6zT1LUKLEKFMqx2XTqtsgGdTp0K4BDXYFVLDbOa2Q9/mfrfoFoHOQUo8rqbMkCiv/BYTiUhO9wY97k33EC/LiA= 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: List-Subscribe: List-Unsubscribe: Convert to use folios then remove find_subpage(), thp_nr_pages() and PageTransHuge(). --- The thp_nr_pages() remove depends on "mm: memory_hotplug: remove head variable in do_migrate_range()"[1] [1] https://lore.kernel.org/linux-mm/20240817084941.2375713-2-wangkefeng.wang@huawei.com/ Kefeng Wang (5): mm: remove find_subpage() pagemap: use a folio in __readahead_batch() mm: remove thp_nr_pages() mm: khugepaged: pass a folio for set_huge_pmd() mm: remove PageTransHuge() include/linux/mm.h | 9 --------- include/linux/page-flags.h | 13 ------------- include/linux/pagemap.h | 26 ++++++-------------------- include/linux/pgtable.h | 2 +- lib/iov_iter.c | 24 +++++++++++++----------- mm/khugepaged.c | 10 ++++------ 6 files changed, 24 insertions(+), 60 deletions(-)