Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp5599410rwp; Mon, 17 Jul 2023 06:49:04 -0700 (PDT) X-Google-Smtp-Source: APBJJlGwMydoLaoI+py9c5OtmqDTAHE3n1jW8bUEkNKV8KBHQF6h9TW1jat9PXAostHH/B9A+eev X-Received: by 2002:a17:903:442:b0:1b8:95a2:d87e with SMTP id iw2-20020a170903044200b001b895a2d87emr10423988plb.2.1689601744363; Mon, 17 Jul 2023 06:49:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689601744; cv=none; d=google.com; s=arc-20160816; b=XWBZEZjDSsYc8pvsc/8571MqtVVQdKI+4934zVke5Xhx3+a/0JNumu5ownPX3lA4R1 cT1QcayRjS7YRBO/vbSkyVTe363KuuCe/w3ZhVbX8v0LdyJ5eNPG+0koyLPGK5monQmz yMHbwEFI+OPUgHHrxvru6APjyY62n4IETKvCwkA26/BcTYvsOrpahK0vfvyn5Lsn/Cgt wzYliOiXUSpjjS0nL3OB5X5iawheaG7xgmqMb2cr4qcBNLCai0rS6wgu1gnj2nMWqloD 6Dd2esJ7KapAhCfXgCEHwkLUrWPK7Wm94+cvypZacJ9STYaeXFnOrDWDa3zKfiASSeLO WXYg== 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=TqXSVbMQWrvzVAqoOB+QsQGKd4OulUArvQxhXkJTJyw=; fh=VDvXH+NlXsy4uKRcyz6yvnpRC6UQTLJqNZtREhJ4J58=; b=Ib7gA41U7J8AcyJK0Xgftet56A5i1hu/YgTCLXKWGPfa1PUYGscptO0DT3OMF3HBYz a/jv1eC7xSg5O9M+bcrAcppwC9kzgjTlpUikZaufS3cRzWp4w6+tb5etU5BATiz1fWji idR5/L9DYIIW3c0XqeWl6mCGJrH4wSNWsKP/4V970p5MKkmBJ6iNDSemwDnIFs3IQ0iy K1VZJ7QJc/R8o0gwOpTIHqQTRSDBErgzRAyQ5YpI1Gt7ZW5GcyVelNIUQh0Z40j7xPsR k/bB6Dx/SqRDm8goT+AikEKlrLJ4CPnXFMfQvd1MyLuCpa7NEyUQRyaruGoJ5lYRlOB2 qr7w== 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 z16-20020a170903019000b001b864e277e1si12357249plg.494.2023.07.17.06.48.52; Mon, 17 Jul 2023 06:49:04 -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 S231193AbjGQN1h (ORCPT + 99 others); Mon, 17 Jul 2023 09:27:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231348AbjGQN1B (ORCPT ); Mon, 17 Jul 2023 09:27:01 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD42BD7 for ; Mon, 17 Jul 2023 06:26:41 -0700 (PDT) Received: from kwepemm600020.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4R4N9D3pmtzVjj6; Mon, 17 Jul 2023 21:24:48 +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; Mon, 17 Jul 2023 21:26:08 +0800 From: Peng Zhang To: , CC: , , , , , ZhangPeng Subject: [PATCH 0/6] Convert several functions in page_io.c to use a folio Date: Mon, 17 Jul 2023 21:25:56 +0800 Message-ID: <20230717132602.2202147-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: dggems703-chm.china.huawei.com (10.3.19.180) 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(). ZhangPeng (6): 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 mm/page_io.c | 56 +++++++++++++++++++++++++++------------------------- 1 file changed, 29 insertions(+), 27 deletions(-) -- 2.25.1