From patchwork Thu Apr 13 10:17:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wu Bo X-Patchwork-Id: 82897 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp930581vqo; Thu, 13 Apr 2023 03:30:24 -0700 (PDT) X-Google-Smtp-Source: AKy350Zns1n7oYZOJqotG62Cknsv3NJt9nPYFsbN8O/+IV1N7xetafQ5krH4b4yYQ7iZ7G4OsnAz X-Received: by 2002:a05:6a20:4f17:b0:da:1b99:34f0 with SMTP id gi23-20020a056a204f1700b000da1b9934f0mr1858760pzb.39.1681381824014; Thu, 13 Apr 2023 03:30:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1681381823; cv=pass; d=google.com; s=arc-20160816; b=u5Fh9c81wMTvqq0mE7w7F83m9nrHn14vzouMoB+MQgJlLRzMGzB2tBK2s1SVUnijrk y0dygBQTg3ZDj89aLisaZBfj+bVmJFrF5asDr6oIo04TEkUW57xDnP5UDQdcfgkVWQFX bUYBY3AejoQ1xkZo7HHCUoo7Ik1EJYu9hr97odCkxLhV/4k/VcS5Yth2YCx68pbh1QuQ 7SK5qp4HzT9MmcKqcDxE7kZ6tG8hTPqSQTWJr4qkFAHRJKfpfIrJj+rEPmmdwkGACu2y NtwbLsHJvx/rHCk8PvdPqGc5pAggD2pr3tVQxfgfbQOsoeKH+/FtHkixPz2VNLW8/+pi BbHg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 4-20020a630904000000b004fbc2116e0esi1707374pgj.205.2023.04.13.03.30.11; Thu, 13 Apr 2023 03:30:23 -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 S230088AbjDMKRt (ORCPT + 99 others); Thu, 13 Apr 2023 06:17:49 -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 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: 2Nu72j6yoWGNmm5vJBTbRWdClb3sT9HOtRDMWP4S9F5WbKXB01qWqYHmlorB/S1eTc3zKAmDl7CW3cYZReIafZpbwIAckfPRG9E5G96QyLge0K4nIAqRoc0yGCTM/FrLxSAw8fuA274e/WmMvbiFFsnJXrnrR/jG9LLxyy1bOweGF6TXn9tWa8Hl8bmUWHY3Ejhjs7bJLKpCQA0QSE4b1JAAwvRMpOkDDGuYtWmGsOYdDqgsmQRCSYuYPrlnc5Ct+AWu82iMaqD+6Sw7UmNgt+sGIt+hf0XdiTzdrthhrhbUIdIg0S8WJCNJ01aUDp+9qq+9dgdOQyfEMbo0pIiTwhVC5QKgxB9/q7b9LUCeoXs5Y8XI6o2HnpI+NpOYQtjD8IHL7r8yOl7r/nptueSyIHO4RNksaO6rp84248lqTewAcvhTymKxkAnLRJOR/BiDwKiVnt1Th5qj+aVV2mfjiT/SEkMaPy/u1byQwY4dNjblTjy6A4oo+NDRKZQItpU4byQMDy9NfgKuL1QwwmOYniMu8Wlg1bBIEfcb3Ydf7qxhHQ+T2VIfFb3sxrtM6/Wdux5B2GT27m+mCu4dxJ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S-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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763056627230562503?= X-GMAIL-MSGID: =?utf-8?q?1763056627230562503?= 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 Reviewed-by: Chao Yu --- 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,