Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp10387154rwp; Thu, 20 Jul 2023 20:58:59 -0700 (PDT) X-Google-Smtp-Source: APBJJlEkQpAQ35vilyY3k/WcHdyI1FiCpnKWirrwxmRFadZ4x/RKaUtiuKoVS67kodMXE6DjEORF X-Received: by 2002:a05:6a20:7f8f:b0:10b:bf2d:71bb with SMTP id d15-20020a056a207f8f00b0010bbf2d71bbmr1356632pzj.27.1689911938701; Thu, 20 Jul 2023 20:58:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689911938; cv=none; d=google.com; s=arc-20160816; b=auAGEVpjEEsXmDEb5biLYTYBDECo0iwf7J0rDR1uN/nw5fUoZ8dv8ft6/kl0SHbded nxe6Wf1G7efoSmF7fYYV/kUQaTUYiW6qDH9LwMVfcTrpSM0TyJM6jNUTaDmLrSg3e/A2 ihFESTtVgdQSqXE0YkZUGDqYELUpyUXFUoj1Vd1lIN6CD1XHK69WbnnchuzCyq6IrVVY FcKdA+FQuAHgZRw/DFrjN1s23I1fgtvIto2wCliXZXLRll1v2lx9mCyQYKnGPMuo0zm6 iZJkxm3VpbGpL8wcRLZ2bYUmbVy/AMYSBZHk/0aE2b17juy6by7gZJr2dhnu1qrShATX shvQ== 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=/zUJ+rt+COxL/SVr2Bpryaaw2UDK3YDAvy2ldUsMT+M=; fh=q8rOnvZaN5Z50YvgZS1uBArX5ZcEEwPcusRFazgmNUQ=; b=THkZgvEqEFfoNIQ04MaYpUFOyuA0vsp+FaoLxOIkweAPMD8gzD1pIwx85gtzGImYb5 VfXD8aKl1QLmGFfuxrgeQnoiNCq2OYxYOHJSFcuvJFL7wnD6YhBPpTYVNhn6ZJcvyb+5 Neq4YNOadbCrClEB1wPC18fbjrvwfoZWFJhCLbrZ4U6qGFb7VkyplHMAmCnG38VNb+qg nI7bXCZj4rUiMZV08TNDc77PmNYHUeCjNYVbRSS5kOSeM+Lcnt0gKRzBYPBqIpIwMB7u siwwhyVepUIDYlgCT+fDbFoDpu8knnfLsnr80rAkUXEiCsYApqSReN1AZKJtPsTQb4Uw kRSw== 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 i73-20020a639d4c000000b0053ff2ca1b24si2156924pgd.843.2023.07.20.20.58.45; Thu, 20 Jul 2023 20:58:58 -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 S230013AbjGUDpN (ORCPT + 99 others); Thu, 20 Jul 2023 23:45:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229605AbjGUDpM (ORCPT ); Thu, 20 Jul 2023 23:45:12 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECBFA1BFC for ; Thu, 20 Jul 2023 20:45:10 -0700 (PDT) Received: from kwepemm600020.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4R6b2g4nc0zNmXP; Fri, 21 Jul 2023 11:41:47 +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; Fri, 21 Jul 2023 11:45:07 +0800 From: Peng Zhang To: , , CC: , , , , , ZhangPeng Subject: [PATCH v4 00/10] Convert several functions in page_io.c to use a folio Date: Fri, 21 Jul 2023 11:44:41 +0800 Message-ID: <20230721034451.16412-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: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemm600020.china.huawei.com (7.193.23.147) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,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: v4: - add THP ifdefs per kernel test robot (patch 9) 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(), suggested by Matthew Wilcox - 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 | 61 ++++++++++++++++----------------- 3 files changed, 35 insertions(+), 32 deletions(-) -- 2.25.1