Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp7968884rwp; Wed, 19 Jul 2023 03:16:36 -0700 (PDT) X-Google-Smtp-Source: APBJJlEpihjcG0hv7wirH7Cf6jO4icoZ2/sWNRc+mY7LZfzuurQhFIBpymjdtUIAtoRSj6gWeJaF X-Received: by 2002:ac2:4e91:0:b0:4fb:89ac:a967 with SMTP id o17-20020ac24e91000000b004fb89aca967mr1529894lfr.56.1689761795741; Wed, 19 Jul 2023 03:16:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689761795; cv=none; d=google.com; s=arc-20160816; b=HtYyzmWBq/YvSPfoc8dCIAh90EQcL3DjEJIbXu1IZBCQkO2rRnJxx7bAPGJxkpxvZg ukJKwG1vVSrCGUv06A9nCc7+JG3qiuEBhpXExrs1qwJGlW7c3P5qf3THR5zD6qRxWb7C iLme99mVsHa44xqjnKHsneSqyNhQs7+Lqkdl9aeTEJ3ySJjTuhWHV4iL6TdGSva4T6tF caQzRjzVkPTBth+AlGH1ln1A9EHEmQUF8fhMI2RZwIFSoXSHknp2IdLYfgJv5zCa4tgc GkFnP8Wi2g4bAltdXLnqDzpRDpA82qWbCDLxRmpq8JKPuRqnrbU1aXwzxBtIv3hQhaOQ +s+Q== 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=jsvLKxOx8Uh/+CuaUoeZ2OcTItbqLN4RUBF6nnA74rU=; fh=fQ8bSAglEIUMWaW8g2fbwjC8kqQICqHTc4sMCYJe224=; b=rrTxD8KKF8rx7kPGd1F9hAIxCmNegqWsjO8W/tsFDextTugwFS8isY47sKl0+jZjBD dlnqQ+klmFPtOx7I4rW5aLRrMni2l559RNa3fif9nUK7qfFYWd1z0LABH9E202dM38aS klHsTsaG+ovwD9ry+YGFF9BArevlhmNd2We6ZJgg1OU9scMc5R+8XFtpA6+P5FfV/4sl 8TyBs48ZZqP3Qloi81IR6wii+AsXBUtQavpXqUIaArfAGVk13QC1OHFbNySk8Magry4y Z4uGicN6RVeboLu4IqnZbT5v3dRyD8RdJRYySAEp1SsJWd2ncZ0MXFys71+HX55YZvUC sj/A== 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 n22-20020aa7c456000000b0051e2784b154si2614766edr.446.2023.07.19.03.16.11; Wed, 19 Jul 2023 03:16:35 -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 S230036AbjGSJ66 (ORCPT + 99 others); Wed, 19 Jul 2023 05:58:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229530AbjGSJ65 (ORCPT ); Wed, 19 Jul 2023 05:58:57 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4033AEC for ; Wed, 19 Jul 2023 02:58:56 -0700 (PDT) Received: from kwepemm600020.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4R5WQt2mKTzNmS6; Wed, 19 Jul 2023 17:55:34 +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; Wed, 19 Jul 2023 17:58:53 +0800 From: Peng Zhang To: , , CC: , , , , ZhangPeng Subject: [PATCH v2 0/9] Convert several functions in page_io.c to use a folio Date: Wed, 19 Jul 2023 17:58:39 +0800 Message-ID: <20230719095848.3422629-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,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: 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 (9): mm/page_io: remove unneeded ClearPageUptodate() mm/page_io: remove unneeded SetPageError() mm/page_io: convert bio_first_page_all() to bio_first_folio_all() 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 | 2 +- drivers/block/drbd/drbd_bitmap.c | 2 +- fs/f2fs/data.c | 2 +- include/linux/bio.h | 4 +-- kernel/power/swap.c | 2 +- mm/page_io.c | 55 +++++++++++++++----------------- 6 files changed, 32 insertions(+), 35 deletions(-) -- 2.25.1