From patchwork Mon Jul 17 13:25:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Zhang X-Patchwork-Id: 13315708 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 7ABE6C001DF for ; Mon, 17 Jul 2023 13:26:26 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7DB368D0006; Mon, 17 Jul 2023 09:26:19 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 715A48D0005; Mon, 17 Jul 2023 09:26:19 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 54BA38D0007; Mon, 17 Jul 2023 09:26:19 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 3CECC8D0006 for ; Mon, 17 Jul 2023 09:26:19 -0400 (EDT) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 05DA1140324 for ; Mon, 17 Jul 2023 13:26:18 +0000 (UTC) X-FDA: 81021177678.18.F818B84 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by imf13.hostedemail.com (Postfix) with ESMTP id BDC4720028 for ; Mon, 17 Jul 2023 13:26:15 +0000 (UTC) Authentication-Results: imf13.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf13.hostedemail.com: domain of zhangpeng362@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=zhangpeng362@huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1689600377; 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=TqXSVbMQWrvzVAqoOB+QsQGKd4OulUArvQxhXkJTJyw=; b=P/qeebPrPvTZiYVPpS3W8wr2vtG1opsROylOxzw1wJ8PpmAU621mypOFKuggjyQr5HOIJg 7voa0CdGgSVHnI+t4uF9CKWuai19Jc6JBKe1ZROWGzRUclNCS5y+1o2uTQrqyPVwpq+fQU qw28qtnWo5wYccL0Qgc81Si84fQ6e7M= ARC-Authentication-Results: i=1; imf13.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf13.hostedemail.com: domain of zhangpeng362@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=zhangpeng362@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1689600377; a=rsa-sha256; cv=none; b=1f1bcdjmYaG1ILcasqfxPklclma86URpHDFBLBGNShlzWKt9P5HgZYefMtECIaiQ2WDT4M sgzzVaWgup+K63CKIsEvd/pabJAcjwE+8pL5rILZcPYTt/C992Fy92CWodClKMcpikQwZv gB7r5VZgMXjfmv9S/QSZZHetC8LTxdI= 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 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-Rspam-User: X-Stat-Signature: a4wywi4sbdi75hmcejzekoairyx88gzs X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: BDC4720028 X-HE-Tag: 1689600375-796188 X-HE-Meta: U2FsdGVkX1/P2n3BoukSpsjo7sa3lkWkbxr2NRb0JtHRzXyV+QNOkHVvutx0li+hAqmL6UUPoq3YNZpd+UbhEGjOeNESxR4vFht1+0uVtsM7Z+wd9DU6+exmzitfeHb3ahw0Y7Q6j3wVBEht9639K01DTJso9nVu6v0jeuO6hDHAmyWSMaSzkhX3mGYsAFyql82CeBPSObX2qdZ6CD1GsXIDuBsOttOP72KxngBmFWkfbLAttGn/cQvmBzBxwREXPyrIPU90YMxWEK55UgKM/4JJSJFR25ivDPWu0zaQ8TCiiTD0DqefEgcgmz5WzEg4tc0NZpd+MhRQ/VzZPy/QqMvfvJMZfdv+6IpAYdmpsly4gAd/YAnbUYDfKjst7Tm654McGhd+81MaHTlaz2jEoS4YXy+PDYgd8QgaLnm70kOPeNcm32lAza0HcFWdHkWxkC9fdeTFRSO83MzyDwY21ilOKSpbI+CiB2JO6iwXwSJSWp16UX2X+bJoFPhQYu/VvnT+JDoGeXoU1urcA7KqS8xA7sRDtu/23f6NUoYWmpqhZ2KQ9qBj8XCkU7xoPfh9He8VFazChM+vkyVSYZYR92BPE6vmGKioELvCOapMHTM0Fzuvb68zxqeyFe29hCuQziV5olIvp5+P16VrP0kmOyiWPX+ncw2vix9O/dX1Uu1Oxvc+yW7v9vgoKIPmuNoNlMZawK4TjMHQDzeOndSj6RBCj/cxrptKVq3HMlXQP8SCLtVkBILfIGwG+DfX6tkFdDVG9docG/hEqdrTGwNrhiJCDTzPyuVm9LAn9kba9AFl3Z4FgsWit0j4gih22+QzmzpnxJ8mowbH8lQBYZyQH6RsfVvBUOkYkxW1YhWuVWcrL1u8oxljjf2RN8Yt7CwBdqW+359QDrLvdkIt8zsBbauz4kfNCEteA0IUu3qIOVQ4cmv3JL2foZvRYO5TwVCNTP64pIrvxDoJKgvwCOu PckzenQp bNaLfv8PDQnV0hm/KgyfyAZK8i847BhCt+GMO7SS1+eOEQXR8Yegyq0d7bbR7M6Sty7erFx0oe9BJVLOVi+lu4PoMBWIk71zZlZEuvp37jEKW49WOioG6qzPWbEEm/v0bBkkrJX4mHRtZlVkX4uYYd3GE0omO3HOrmG4gZ7CqyVgt195WUnYF2N5cO947nbBYLaW/ X-Bogosity: Ham, tests=bogofilter, spamicity=0.000006, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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(-)