Message ID | 20230721034451.16412-1-zhangpeng362@huawei.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 86595C001DE for <linux-mm@archiver.kernel.org>; Fri, 21 Jul 2023 03:45:19 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3312328004C; Thu, 20 Jul 2023 23:45:18 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 217EA28018D; Thu, 20 Jul 2023 23:45:18 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D8CE2280187; Thu, 20 Jul 2023 23:45:17 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id C09A1280188 for <linux-mm@kvack.org>; Thu, 20 Jul 2023 23:45:17 -0400 (EDT) Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 8DAEAC011D for <linux-mm@kvack.org>; Fri, 21 Jul 2023 03:45:17 +0000 (UTC) X-FDA: 81034228674.29.ABAD961 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by imf04.hostedemail.com (Postfix) with ESMTP id D0D9740003 for <linux-mm@kvack.org>; Fri, 21 Jul 2023 03:45:14 +0000 (UTC) Authentication-Results: imf04.hostedemail.com; dkim=none; spf=pass (imf04.hostedemail.com: domain of zhangpeng362@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=zhangpeng362@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1689911115; 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=/zUJ+rt+COxL/SVr2Bpryaaw2UDK3YDAvy2ldUsMT+M=; b=ed1dXvwo1682RFKV8a3iQo14pa3ulXdFZDjrXuPoonOFwZaZx+hDG0L67k8XrHOKnSxlSv s3SKTxLpSly6GV1djVp1xZtPXf/KqjwCEuCYS6aLFuGMlrGDeP3CApGUWqt8Y0PJANLeUZ 1IO2JOloPITmGrRLR2uly4mtN4zD1bg= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1689911115; a=rsa-sha256; cv=none; b=YgcSD8AulpAcKy/IqMWAOJa1cXWQwCsxwqUaAfrSjiLZtEBm2bIU+VU4SQ3TQvLhTjfO5W z2RTlRrhWaUt3kDAjL4DXxnEmNBjXNZBz4c7Cjb1cVI7pqpsNQC2+6X696so5OKh3MlCkF 6s7eRjtiMUCzZwZIgdaubI/YX/lkBZA= ARC-Authentication-Results: i=1; imf04.hostedemail.com; dkim=none; spf=pass (imf04.hostedemail.com: domain of zhangpeng362@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=zhangpeng362@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com 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 <zhangpeng362@huawei.com> To: <linux-mm@kvack.org>, <linux-kernel@vger.kernel.org>, <willy@infradead.org> CC: <hch@infradead.org>, <sidhartha.kumar@oracle.com>, <akpm@linux-foundation.org>, <wangkefeng.wang@huawei.com>, <sunnanyong@huawei.com>, ZhangPeng <zhangpeng362@huawei.com> 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: 8bit Content-Type: text/plain 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-Rspamd-Queue-Id: D0D9740003 X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: kqik7oo5fgdjx1j1pygtipecwxwyjsip X-HE-Tag: 1689911114-329206 X-HE-Meta: U2FsdGVkX18lvL/Pm35ZmluGPib+vJqg0ewtBICC2JG1LSeA9HCEgh2TSUXvW2MPqIcO5SbReN8ti47K88PcKmdy6HRaGh3AniQeU9mtxS991OH8HH2r+cLPcso+u4OOashovXCbe5beVlhA8YYwKgiSr9Nx+dIii6POpAEGwCZS6ohG6myuuzoWhqS38IzzGO7KTdXmmetzKB2N6uwE3nfH7Iivqc0r+v3U2UCQ9nrZ6MrmCkgl173NmgjpRjbXWkgZBRiZBQPnnU4SjF796M/kkhcPEOtqNAJrn5RW9h8HVXvfUya/NmdlRO1piykbSPprXXP7lQQpY2eacwkI9O/c7L2NsRs3/4TWDrY8yfJHUjZu9YHNtabp3DXQIHOHm25I62ufDh0s51W9Tfb83w3252zSSRQ+79JQgYX4chDxTiKAFlq9dx5LY3dQ+ZNmTdfd/bH4ncPpPhZq0OWkklhCDsRcmElIBuCEMYpyw7lkPm7JHOA++BxM6jNuRmejqfB05vY+Xa2X7m+USlghC2T+oHprWNOCsF4ezmuvk4ILRPPLIUaBQiaNvQArWcRF0xYMYvBuSTc9tQkJgiNrWSKSz5Iokog6G7cumB1KIMzyDPDCJWqJ97eZLJ6Fsx5S0MQJiH2gZBPQifEbVJznfo0TqOXstG466ky430aA8onTfmwSIZd00341pOM3MnkZ1rYPc0MyeCRlz1MqVa7n3pAiKMq5AvyfQr8p9cYbcrJTiOfRr7YccBfM0a7WqCl5maKb+AW2hYl3+57EJg1UZzWFDy7N6LFRJikQ955n4llOvBY85INV+P8cZes7MJqXv+uMR14Xiok+QjTejSB2mG09ivp9HS9xyfoWdxeP5mXcWZ7nVmB9zFyg0iQydHOMqy5d0xQDNg0XQmu3Pk4vdbnlACUACTojcJoyQXY810JVp6shhwuwxkRQOPsKfFzo2BzDUoUweetMLHqCABm AAxRXckV pNt083EV1m4m+4H/NbuufjeKq0L+WYiabyjl5lgiML04SXEG+Phx2b3nBBmhn0wiu/Ve8M3CzxiafhyRjG7aLAj6792QzIdTPgNfJVg32YcHafZljuGB7BTBRB4q5qyNHBKJOLPDmmrN6lQNUbo64Ztr4K4NeGqN7xY16EkKnl1idypx8MaWm2QqhGqMmiu4Aeb5S X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
Convert several functions in page_io.c to use a folio
|
expand
|
From: ZhangPeng <zhangpeng362@huawei.com> 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(-)