Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp9538088rwp; Thu, 20 Jul 2023 06:29:03 -0700 (PDT) X-Google-Smtp-Source: APBJJlF2buVVNq0TyK5ZtgigRMSd91evjfnpHBL8h4gF098JZ4gBB0Do/kzX41bTzSh5AbwGCu+4 X-Received: by 2002:a05:6870:d0ca:b0:1b7:27cf:9709 with SMTP id k10-20020a056870d0ca00b001b727cf9709mr1700486oaa.43.1689859743241; Thu, 20 Jul 2023 06:29:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689859743; cv=none; d=google.com; s=arc-20160816; b=AyFRMnChqXYchshxyN7qjwHBufCkB1vwDrvcqSWaNOdELyIcW600uVU2MdkS5ItyfG L+Yh/kMbOU2i1d15I8ppwJnueXeYq2nmJoZhGfakuQDBzlowjWSTAY/+pBjihqRYt1Iv tJhh4NMy7kaEuewBZGXOelPBL4FSXQIlkzqMKfvCHgCkgq0gpUAowFbkx8M/oia3XlMw gw7R9NuUMzcqtolTXeoRFY2XNh1mxqpX23ddL5tRUrcewamc1zgk4TI4a7TeR1VMBEFZ HvCnG22+QaZ06Qx4JUCQ4nDWBXnu4Xdr/Xd/NB+Rj4MQ4v2ildOaW3tZYHt1TdfuernA qRIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=9PY8njO5DSi8k+SB8O6dOlaiqpN/8wMiu35LlGxYziw=; fh=q8rOnvZaN5Z50YvgZS1uBArX5ZcEEwPcusRFazgmNUQ=; b=UWvm8HvNhe+4uqMB6+B4InZwN/6abOalo25zYPkuX2EvRQo21FhAG/txCg5XV3Kxpw I/xqSrfVCkMKQAtg1OAmeEGIDC3v9cPqc+rS9OVto8/IpqOibTPuFXbzXXm7QeiOss6P iMIASF1tVSUT+6+itkFcqpN+EeA+Rw/Oxz+Z3Te3w9LghcZ2DnotD4SqYpV6GswL0lSw ZUdH3zGdTDWWI0d9dd1+RIwq1YrfFDSaDFUuHXZ/mzmkbEAM6kxtv9b/jdRPV/CeKuAN JaM/lNjJrxiw4MPPh1i5PjmOA3NYbG/diM3grmyyexgJvZUSDSJ1jtZY9uXSou55/s/+ IqBA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o37-20020a635a25000000b00553a56f7b31si814518pgb.330.2023.07.20.06.28.50; Thu, 20 Jul 2023 06:29:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231667AbjGTNCs (ORCPT + 99 others); Thu, 20 Jul 2023 09:02:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231508AbjGTNC2 (ORCPT ); Thu, 20 Jul 2023 09:02:28 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B37626B0 for ; Thu, 20 Jul 2023 06:02:27 -0700 (PDT) Received: from kwepemm600020.china.huawei.com (unknown [172.30.72.57]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4R6CSy0jrtzLnts; Thu, 20 Jul 2023 20:59:46 +0800 (CST) Received: from localhost.localdomain (10.175.112.125) by kwepemm600020.china.huawei.com (7.193.23.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Thu, 20 Jul 2023 21:02:14 +0800 From: Peng Zhang To: , , CC: , , , , , ZhangPeng Subject: [PATCH v3 00/10] Convert several functions in page_io.c to use a folio Date: Thu, 20 Jul 2023 21:01:37 +0800 Message-ID: <20230720130147.4071649-1-zhangpeng362@huawei.com> X-Mailer: git-send-email 2.25.1 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 kwepemm600020.china.huawei.com (7.193.23.147) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: ZhangPeng This patch series converts several functions in page_io.c to use a folio, which can remove several implicit calls to compound_head(). Changelog: v3: - introduce bio_first_folio_all(), rather than replacing bio_first_page_all() per Matthew (patch 3) - use a folio in __end_swap_bio_write() (patch 4) - remove unneeded ifdefs per Matthew (patch 9) v2: - remove unneeded ClearPageUptodate() and SetPageError(), suggested by Matthew Wilcox - convert bio_first_page_all() to bio_first_folio_all() - convert PageTransHuge to folio_test_pmd_mappable per Matthew Wilcox ZhangPeng (10): mm/page_io: remove unneeded ClearPageUptodate() mm/page_io: remove unneeded SetPageError() mm/page_io: introduce bio_first_folio_all() mm/page_io: use a folio in __end_swap_bio_write() mm/page_io: use a folio in __end_swap_bio_read() mm/page_io: use a folio in sio_read_complete() mm/page_io: use a folio in swap_writepage_bdev_sync() mm/page_io: use a folio in swap_writepage_bdev_async() mm/page_io: convert count_swpout_vm_event() to take in a folio mm/page_io: convert bio_associate_blkg_from_page() to take in a folio Documentation/block/biovecs.rst | 1 + include/linux/bio.h | 5 +++ mm/page_io.c | 63 +++++++++++++++------------------ 3 files changed, 35 insertions(+), 34 deletions(-) -- 2.25.1