Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp446053lqp; Thu, 21 Mar 2024 06:17:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUshp6xrN5Lxwu3Ybs0OGmddCaFPlxH5JovzO2FeHERwOavUXsJ/hv5rE04KPnZ+EwLlarXPKLWnQrYFcl+NHIgiQNV2U792fv7x6ddNA== X-Google-Smtp-Source: AGHT+IEa7450cvy31jcq2AwlvE/T5ScVxZ43pyMs7s+2kVF350KFrW4uSj8NXKigpd4umv0QOL91 X-Received: by 2002:a05:6a00:2386:b0:6e6:c38e:e8a6 with SMTP id f6-20020a056a00238600b006e6c38ee8a6mr2209482pfc.4.1711027023576; Thu, 21 Mar 2024 06:17:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711027023; cv=pass; d=google.com; s=arc-20160816; b=m0u5utJHLe1VDVNI8M0k43XQBvCF09TVxkF4H/NS+N9FiNe12YOp8uDWJM6+9niZxP Sx7JmoDrxwKGZ8cc0BWN8PsaTQG550fv1nEieXJfzXEVS30d7gkRsGEeRjMdsgAto6q1 FKkDUql9P6DklrJZ4u5W84dNGiGFBjI1MP30KpQmnwUkQWCLZraw43NcMVi7S/2JqCiY E1n0m5KYPSDZ2UgA77YuUJvtUG10ZIDoOPPhKBjDMHcfPOD3YbmX1XFFzPNofR0dVrfu 5iWzS8c+CWUzN1B3booAt/0GD9iIxvvo1zZNDg/mfBZ5KgTzf9JznbkuHNz/qWBWx5Q2 EOfQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=2f+TVf34fVS40N4qr4e6vhSanAjZrXFee8jDgQwnGwM=; fh=hTDDgOs6UeYLL9b6GvD5KQqb1t24mhES3qSwJd33RnU=; b=K0FfM2D9nJco3Kbz7BFU69+5a07OF5n3nWr6wGhpTJIlDIurA5msQIpgWJeIJpxf/9 FIkr/7OWw+yJf/iek9dWyCEppX/xs4PkyrP7s+eWH7Kn7czjvY8suqnmUAlytWGjAJhz lGAPQtRJ0JwRRNelTDQYUehWF3TemShOlwrnB/gz2P34HcpYmFUVoslbuReyXl/tpxY6 het5dde+j3KQyTiz2HZmKwdEHUiKsQP96TcSqkBAjDM/vVwM7AA/2+uett79BGRo9Lwl +9IN+0DJYrmJhSun1iJHpgAt8ZHvj79GmYxcQn2dLA5ZotMfGEGM0HF3Y5fCYu4XI+1q 2HNw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-110083-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110083-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id gx9-20020a056a001e0900b006e6bc5376a1si15341421pfb.20.2024.03.21.06.17.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 06:17:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-110083-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-110083-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110083-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 441A7282B61 for ; Thu, 21 Mar 2024 13:17:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7BC5284A53; Thu, 21 Mar 2024 13:16:55 +0000 (UTC) Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 756FA84A37; Thu, 21 Mar 2024 13:16:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.187 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711027015; cv=none; b=owbiqVX0nIMCkJElthlxSj2ZSHJCBXDTV1J4oTP0ZIU+HYRMtWgMLSYm8n6gLab2hwt79ZF+R6zZLoRGKH41Obn6/gVpRYxchATFLXAPjwokzvI+445LBVNF0H8GD7myhWUoAkYnAvfUnAha47TSYXPST+H8TEYZKzVlSFT5Fx0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711027015; c=relaxed/simple; bh=NnhdgZ+fHdsMTH63wmWpTrWtLm6hi5tB7hLyZAa6TPM=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=ClMOoJhFVt7YpBRpLzNJvKfyU2+fxlJBiZwNYJSTOFDFOaNaXrx1HGCobZcCiR5yqlv79TtyC9zvI8VaTRKv95elr4bhobUv6A+8OE3iWJpJ6ncrV86+FNvr+Z0RCTvIR2CC52jZyKCykHXc51yCeaTBd3aTUn/YSKuKbru/a6Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.187 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.163.174]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4V0mBb53zvzwPZB; Thu, 21 Mar 2024 21:14:15 +0800 (CST) Received: from dggpemm100001.china.huawei.com (unknown [7.185.36.93]) by mail.maildlp.com (Postfix) with ESMTPS id 9341F140FEA; Thu, 21 Mar 2024 21:16:49 +0800 (CST) Received: from localhost.localdomain (10.175.112.125) by dggpemm100001.china.huawei.com (7.185.36.93) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Thu, 21 Mar 2024 21:16:49 +0800 From: Kefeng Wang To: Alexander Viro , Benjamin LaHaise , Christian Brauner , Jan Kara , , Matthew Wilcox CC: , , Kefeng Wang Subject: [PATCH v2 0/3] fs: aio: more folio conversion Date: Thu, 21 Mar 2024 21:16:37 +0800 Message-ID: <20240321131640.948634-1-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.27.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpemm100001.china.huawei.com (7.185.36.93) Convert to use folio throughout aio. v2: - fix folio check returned from __filemap_get_folio() - use folio_end_read() suggested by Matthew Kefeng Wang (3): fs: aio: use a folio in aio_setup_ring() fs: aio: use a folio in aio_free_ring() fs: aio: convert to ring_folios and internal_folios fs/aio.c | 91 +++++++++++++++++++++++++++++--------------------------- 1 file changed, 47 insertions(+), 44 deletions(-) -- 2.27.0