Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2213017rwl; Thu, 13 Apr 2023 03:21:22 -0700 (PDT) X-Google-Smtp-Source: AKy350aYHa6Xf5/1OHsV5eIz/pxuk5w6ZXvNYq4KFYzkqHCvwJ4rRl7dcR7yxfiJvtpWnPIMpVHX X-Received: by 2002:a17:90a:dd84:b0:247:1e13:90ef with SMTP id l4-20020a17090add8400b002471e1390efmr1371434pjv.20.1681381282573; Thu, 13 Apr 2023 03:21:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1681381282; cv=pass; d=google.com; s=arc-20160816; b=kxEMLnCrqGyyxFc36gfsLREVZJVryM/9J2W5RGXCkc2h0rd2CLKYM1ZV38iSAWBGfn wiuS/4uTUODh/zPOhQRS9keCL+LP8QHnFWGyhj/tql1j6gKTMifoXxMpqRdF26rCxmmj TKHuBeY2z7EonJZPhQCjCLmuuKklo05jGdMMBUCp3A439ZJ67oJoW5EcJiiaFBqZHAGB 9/9XRrUebAhMj+kjuFrw+WmzUVaCH21sf4E/SCKyUKf58OT1IFjI8w1SXMenAijPjU1m b6uJjA19x7rY+lXuxhmxIxKwgMb8qJiOKO/xyj/cfsLQK6e3Up+E54MOMWV/6qK4Nxo8 y05g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=1n+7wl6xIVBWWUp/3w4OHwmry+/ILPdgrLrQPRTU8/g=; b=R2w+U17SQgZjADK18YV1WEU4HAJQzM9fUz5LeND705aXG/DnIo6P9NwYTSFKd8ll7Z kLNmp9/F875GSA4TkmgqQB9Tt4eXDadt0e4u8wCU/nta+CktN6+bygdfnYrKLHhgtpOl p3WGGcFn6ZRELNTP+UjYcOViVa2KJxFWnoRGqoBK9HwhES7Lgaxomgb/QTkOhhELeVhz n+flnxxYNymDjh2w7PJ142KdR+wZ8kejIa+YlwKEtjxsgS9RjzhY1wahj56U+zy6MF20 3rC/dLgw5HMv24AYKS4jSLRIxxAjbMTBW9bxsSp7FEJyv7vm5aXthu3xs21MhcZEXZS7 30TQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=RCgtj1aP; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kk5-20020a17090b4a0500b00244993e3e6esi1865395pjb.50.2023.04.13.03.21.11; Thu, 13 Apr 2023 03:21:22 -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; dkim=pass header.i=@vivo.com header.s=selector2 header.b=RCgtj1aP; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230027AbjDMKRs (ORCPT + 99 others); Thu, 13 Apr 2023 06:17:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229814AbjDMKRd (ORCPT ); Thu, 13 Apr 2023 06:17:33 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2102.outbound.protection.outlook.com [40.107.255.102]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81FE78A58 for ; Thu, 13 Apr 2023 03:17:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WayzWY1q3hmdLED0RI9iur+9rmYtL12UBj4ll7ukyLTRz1CdQeQSbtUvfnVuxKa6PZocJO98OqjDYyXSjmYt9hnTrOCLAnGf5jARbyaZVx46IxqurBc4/BQk1yBjFU/tPR+WKgs4RvzD/s/hmJXcL6LyezRRnZjLAKdWzyRzVbNKz0jljgrT292bqB1cSyMBX+RvisFfu0jNspfjX/IpPMEXL1UxrJOmi8tOg+fo1uDDonbe50I0Txhn6jgot2kod32777HwsEiRHZkqR3f0yqnX8Dgk+9M+dEuqXwydJB68CcH8WBgIQqxuCGbJXt0SKryODe1koI8g+taR5/Zz0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=1n+7wl6xIVBWWUp/3w4OHwmry+/ILPdgrLrQPRTU8/g=; b=i8O6erv0aEkbHhWEuQ81dBuv6Mg2dp9Lk/gTVZGWsIQeKtUhOSOrWa8AM8LuuoVmemhgyw0dRlJRKZaxC3IRheqigZMBTBZtW6dSurgqWVF0B316YXEtR79L2piflVt5TxNkLdmQfc/GPJpvWF9tkvyCqnJxtlPXk3LrjYfVeUjF+Qrk9mDufRHftadgTXy7+BfVmqfUNTxufm4DDLByIkLcc3Xt7CRApTrqkXfa5SZXgw7JaZamhkCLMWIPAx0X3iwMa7opzakhg9iRIHllkcXP9QoraTRdvqkt3rCXcskHtg8hHg8PNIFNZyuacM+UD6EdZiYh5u21rCyWiUYGdQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1n+7wl6xIVBWWUp/3w4OHwmry+/ILPdgrLrQPRTU8/g=; b=RCgtj1aPuh6kfVGX3gCktGV0X/vR4wFAXPDBtvogZ0CXgndJudbOj2yw8dy5oERbnV9cbvxICbZY3hIuBWVzpdUjcZfcOnQfGNGQ4i1xLJ2l62xNP1qRbpAd8jfoHbUZTVRbDLLo/lhriaC8bcc+VOiSNbccRB6f2MI1Xbl7V4/VxujwAjRCl+SqbDNB0Cmw7VjmGbWF4Q0+2pYu/fafnoTSQfyK0RizjIcTlb794jjLJICZntl7QLkLnkrGRIVFln2L8rGE+my6h/5rWYpzmjhxwXKVkxeTVkumGt8ekS3NDBj7n+hp5Go7I4VfNm8cwzF2T6uFuk2WV0htdYWLeg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SL2PR06MB3017.apcprd06.prod.outlook.com (2603:1096:100:3a::16) by KL1PR0601MB4227.apcprd06.prod.outlook.com (2603:1096:820:65::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.30; Thu, 13 Apr 2023 10:17:21 +0000 Received: from SL2PR06MB3017.apcprd06.prod.outlook.com ([fe80::4d33:acf:26b3:3d4a]) by SL2PR06MB3017.apcprd06.prod.outlook.com ([fe80::4d33:acf:26b3:3d4a%7]) with mapi id 15.20.6298.030; Thu, 13 Apr 2023 10:17:21 +0000 From: Wu Bo To: Jaegeuk Kim , Chao Yu Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, wubo.oduw@gmail.com, Wu Bo Subject: [PATCH 1/1] f2fs: support iopoll method Date: Thu, 13 Apr 2023 18:17:11 +0800 Message-Id: <20230413101711.13682-1-bo.wu@vivo.com> X-Mailer: git-send-email 2.35.3 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR01CA0177.apcprd01.prod.exchangelabs.com (2603:1096:4:28::33) To SL2PR06MB3017.apcprd06.prod.outlook.com (2603:1096:100:3a::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SL2PR06MB3017:EE_|KL1PR0601MB4227:EE_ X-MS-Office365-Filtering-Correlation-Id: 8de269f7-7c57-420b-bc07-08db3c0844aa X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: oZhnYSEjzrSCm77LYohTB9d3kpG+oqt+3xBr1CQfiPIYlw1QdLG3QdVVy0cwoFAHtsgUHLSIswA9mttbl4BBjgtnSfw5Rvsp7Hon5EswllzXgmIsevLKEqHGIXaVfNaTqX16gERYnk1olOnJweDt2iEKwdZQiq7tT+pdN0zOOk5Lry/YN0mrq6vK2zhytS2SN7NJYHBdh36IU681wH3KX8f/28V2HZvsJs6zOyce5SPF5mfa2dWCIOES8P3QJiVISPOzDiIDrmGXX3oLOL8aiuPZ9lHj/cNCMdGoxrTDX9TMgpctr8egJ/QbgiSEViv2LIi/kevZJWRNe5+gFtfKkkk9KGaIMYbeEV5Do57cbZrchfwsIJejjFQ6wU6R/v1yJQO1qzcUgPwDnBpiB1Ip+u7xN2iVD7lCz81uveLtFCjRnjGqMQUxKxHXFs/Dqa2Xw0Mhv8TbH2/anwkmK2wFulDL035CIZ6FLhwS3BaI9hoVvmvxme2XDV6D6cgOkCAoFozAO7K/XB+nH1hW1R9pbG0TvJH56/dfPov1r+Sf6QO8unVrE8RD+c/3I5fwItU1XrjCPvmVzGCQYeIPVY8GZzqTTLBfWoQ4H7SNsJTXGmwZJx2/Zme1vAMqJDoZkIDa X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SL2PR06MB3017.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(39860400002)(366004)(376002)(346002)(136003)(396003)(451199021)(66476007)(86362001)(2906002)(4326008)(66946007)(316002)(66556008)(38350700002)(4744005)(8676002)(2616005)(8936002)(41300700001)(38100700002)(110136005)(5660300002)(1076003)(6506007)(6512007)(26005)(186003)(36756003)(478600001)(107886003)(6486002)(6666004)(52116002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?2Nu72j6yoWGNmm5vJBTbRWdClb3sT9HOtRDMWP4S9F5WbKXB01qWqYHmlorB?= =?us-ascii?Q?/S1eTc3zKAmDl7CW3cYZReIafZpbwIAckfPRG9E5G96QyLge0K4nIAqRoc0y?= =?us-ascii?Q?GCTM/FrLxSAw8fuA274e/WmMvbiFFsnJXrnrR/jG9LLxyy1bOweGF6TXn9tW?= =?us-ascii?Q?a8Hl8bmUWHY3Ejhjs7bJLKpCQA0QSE4b1JAAwvRMpOkDDGuYtWmGsOYdDqgs?= =?us-ascii?Q?mQRCSYuYPrlnc5Ct+AWu82iMaqD+6Sw7UmNgt+sGIt+hf0XdiTzdrthhrhbU?= =?us-ascii?Q?IdIg0S8WJCNJ01aUDp+9qq+9dgdOQyfEMbo0pIiTwhVC5QKgxB9/q7b9LUCe?= =?us-ascii?Q?oXs5Y8XI6o2HnpI+NpOYQtjD8IHL7r8yOl7r/nptueSyIHO4RNksaO6rp842?= =?us-ascii?Q?48lqTewAcvhTymKxkAnLRJOR/BiDwKiVnt1Th5qj+aVV2mfjiT/SEkMaPy/u?= =?us-ascii?Q?1byQwY4dNjblTjy6A4oo+NDRKZQItpU4byQMDy9NfgKuL1QwwmOYniMu8Wlg?= =?us-ascii?Q?1bBIEfcb3Ydf7qxhHQ+T2VIfFb3sxr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?Q?faKvRUoKPLrXddeYV34l85Dx2c4w1NLYWbEeuKrE2p9H8KqWhSi63diRpjsq?= =?us-ascii?Q?ItrEF/meF9dXS43CnJazSoozvb44uSKh/UAPSGocBVB3uOTU6HyO1mI+EwAd?= =?us-ascii?Q?vKA/klNJAoIqOI05tUnCzBWfu3FCgTk8ErklOGfW?= X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8de269f7-7c57-420b-bc07-08db3c0844aa X-MS-Exchange-CrossTenant-AuthSource: SL2PR06MB3017.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Apr 2023 10:17:21.5697 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: EC7DHiViDEhn5S8i75nqFdD813GjeFQThR3MafGXkrS8LCcLolZgjpkgVWjcshM3c62DFX1okLeVRBiUJ1DOtA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR0601MB4227 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED 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 Wire up the iopoll method to the common implementation. As f2fs use common dio infrastructure: commit a1e09b03e6f5 ("f2fs: use iomap for direct I/O") Signed-off-by: Wu Bo --- fs/f2fs/file.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 15dabeac4690..ced796ef615b 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -4879,6 +4879,7 @@ const struct file_operations f2fs_file_operations = { .llseek = f2fs_llseek, .read_iter = f2fs_file_read_iter, .write_iter = f2fs_file_write_iter, + .iopoll = iocb_bio_iopoll, .open = f2fs_file_open, .release = f2fs_release_file, .mmap = f2fs_file_mmap, -- 2.35.3