From patchwork Tue May 16 12:07:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wu Bo X-Patchwork-Id: 13243093 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 lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B41BFC77B7A for ; Tue, 16 May 2023 12:08:16 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-3.v29.lw.sourceforge.com) by sfs-ml-3.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1pytTR-00078l-Uq; Tue, 16 May 2023 12:08:14 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-3.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1pytTP-00078b-FE for linux-f2fs-devel@lists.sourceforge.net; Tue, 16 May 2023 12:08:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=MIME-Version:Content-Type:Content-Transfer-Encoding :Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=azVh/Z/vDfLnl5EAm8i1j2xbarngxj1S2y4We6ru27Y=; b=RVttwWP3rCmQTfK/UXYpdPa72P xpzQW5Zkd+lW20J9Rr91lYDHRpzzDYYcOjgA/JTyO+E2XfuYPRBiNmpUiBwG4Ez5HroelFZxQmfdw +e4+gzcRWDbbz1kc45NQl2zRLICndhcp2dzrbIeW5hkg+vjU+cp9MHLQe/5nDQdZPRQM=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=azVh/Z/vDfLnl5EAm8i1j2xbarngxj1S2y4We6ru27Y=; b=L IOzOKJRGFDqTIqtXvGw16kr/Ihp3Peu+afigu4IZJVcMNcliOmPpJph4wArijhW6bq1ix0u5oTKvT 5NGTT24FNI4fjf3ucXsAUWHV8WWV3haRHHxgQBbuj845ZUoeS5dZ1t8ML8e4Ln9eJsJ0RMsvdzYdW cjY6+gJPd4Obc34E=; Received: from mail-psaapc01on2098.outbound.protection.outlook.com ([40.107.255.98] helo=APC01-PSA-obe.outbound.protection.outlook.com) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1pytTK-0004iu-1p for linux-f2fs-devel@lists.sourceforge.net; Tue, 16 May 2023 12:08:11 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TQOvZtDUVaonZikDRNXGnCHOEXzAJ6nswONwtyN6rMv0SkEQXvX3De8eKN1A6KNaPojRGntogwnnZWyg7Yf71H1ACQjIDQghmsLPPhim9kBEEqx/wrZuS6yteVhMFlcSbrKKwv5av2b8KCXv7z9JpVbQAIug85dNMn72tKZA9Nv0qhjXiqPvat84YZbV6DeB11L7PdvWlUXwoRlNDBPy2dM5KSPADg/R0FJMg3dhdXPV1qW/9OSdV1vnfSWkJYqZ1C8WECGJmrVou6o30wDpD01mdLomMsyG3PGMH0/qhdo4Kln7cRAk2lMWopi5mafWcFRTNZbG5+eXdkdVJqbY3Q== 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=azVh/Z/vDfLnl5EAm8i1j2xbarngxj1S2y4We6ru27Y=; b=RA2oBjbEz7SdSMi0EDfe7GO6luuY7LNudMnSHC5oZRES8foWme6kQ9kPqS7xctpfOvLHW3lEgwasiWR6vXdyJTWlTVwP62H7dDRJLYUg7b7QTuVmiIbq3H36WN2KXLCAm9c45kbfCO2U/6SOu6IK84Oe+rc8r9D+6SOXZ8mMMRxVDTbYn6DRQ1XX7FzdZrbCxTFtLM48+z+bAQl3Qf51YSIaYUEVcWvuJWErzb6qA0/5TCGVx43rMofx1mKTfXA5q3O0wGXmQR18dSnPEPyCI8RHycNc4CXXomhIWmWpQFK5wIogMfj7L9+gXsKkEuFXmlfzqaYZ3o/Vt7isfC4SoA== 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=azVh/Z/vDfLnl5EAm8i1j2xbarngxj1S2y4We6ru27Y=; b=NnowaGlqE4RgF8CA+zQpSSZ/SUBxAUNAjfw+kf5WZH5l/9xs4cUOXPE3kTK6931SSl+6n+C9m8wtDat0f96OJbQU4ClgYlMp3vlDvVDHMLgXIocOD27AVrV2NiOtvMGLOtZDUbFGyQViZpBOn6VvaYlCu4sd+OHGj8x3kaZpiosECoZtZ3SEKjjmyCHnhq3J1aPSn13J1zaKUHNsAhpRh1PYYiv798mv+cboEje2YE3y8WZQEE+UHcXiHPaviEkFjXGq6tBBxQkpBdbiEkkdQG78uaYZIMGTdts+WxNvSvEZfuHaGCH7qF9QZ5eor7wEzfGJPYIHLPIUgF6ra4Yqyg== 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 SEYPR06MB6279.apcprd06.prod.outlook.com (2603:1096:101:139::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6387.23; Tue, 16 May 2023 12:07:56 +0000 Received: from SL2PR06MB3017.apcprd06.prod.outlook.com ([fe80::b895:d992:299e:32d4]) by SL2PR06MB3017.apcprd06.prod.outlook.com ([fe80::b895:d992:299e:32d4%6]) with mapi id 15.20.6387.030; Tue, 16 May 2023 12:07:56 +0000 To: Jaegeuk Kim , Chao Yu Date: Tue, 16 May 2023 20:07:47 +0800 Message-Id: <20230516120747.68844-1-bo.wu@vivo.com> X-Mailer: git-send-email 2.35.3 X-ClientProxiedBy: SI2PR01CA0041.apcprd01.prod.exchangelabs.com (2603:1096:4:193::15) To SL2PR06MB3017.apcprd06.prod.outlook.com (2603:1096:100:3a::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SL2PR06MB3017:EE_|SEYPR06MB6279:EE_ X-MS-Office365-Filtering-Correlation-Id: e36a2bfa-401c-4c1e-c693-08db56062ef3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GQjIEFXLZyd7deTyFYTFk49y0KP8C0GmngTOmCU+DKkAoRFD4uHpHC2pXkwi5g47WsUIwn0+isCaOeO8b2KDuSzZL4vmifgp6YLAHjvJfRRWQ3dwzEQp5/ImifgH9Allj9EZhNzcwCWAZnPOFxrKykoAH5zw2yAduWYi3ouPmc8BH2HHfGCUTww66yghRUE7xwYjJXJJzcEagANbQrribM1zApCYu1mMzvavW8AccYUjixffZEqgzUrL/g7CsDYfrBdKIrVxmrT1txv1tNKFGnY/60GINT1ClklhpJMYbUdM8Bl1LUaXN9Mi3lk7I1RnqjuZeQq//gr27TwkvcWsG8DL1wgUddLbfocXF8iQTLKvkAOxLC508iHRLvHx3Jk+kZeLFp5JuivyP8UDT4QksgWw3yl8076szf6VE/0QETOfMSBigK8tMuRCW6Rp2+2rTR35vAGu3HbU1D1iqSRW1UhTDA9otmdHuUjiAobV1+kkwNGv+k7IuvNpehfY/qg56YDGd/cda3ZeTJXivCUPOMKbiv8toK48Z8RJ5/niLVWU5hSGieIrXrZja9iHLcAohtakwsxclCXPCKwweWDQYzF3wqrpXRqWV3FnzcLQoUDTxUQ8/1d0PGxh+jcj1ZNY 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)(376002)(39860400002)(136003)(346002)(396003)(366004)(451199021)(6486002)(52116002)(38350700002)(6666004)(41300700001)(8676002)(8936002)(4326008)(66946007)(5660300002)(38100700002)(36756003)(66476007)(316002)(66556008)(186003)(1076003)(6512007)(83380400001)(107886003)(6506007)(110136005)(478600001)(2616005)(26005)(2906002)(4744005)(86362001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: JXJy8fPkvIes+c7JbbvrVfqsU/9kojjIL+TYcnOWs7WB18CYSFGoNWiz1KYbGh1rHcdjHCz00Pt9eCcQkOvSOgPpmf7MwHfAiwo8MtZ0Hu5tlPJqAVCUvHy1HEwYBCSVhfG/TRuZterl+trgoy7IVVCar/3ggw2b+TH+zPevYtHgODVkcFA72N2WlS1wPo5GiDh3Im1IYseucYsep+oYBNdSBlvoAwNCfbO5Z9s33GcJJM1/sID5AhsfMWYHHFM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vH9SnhxXGJ8SCn06rBc2YPXZ3oSMXFbJiZ5IorgVOxQ3tRttJy/+egt7Szu3Yj+9KhlXVQLdJ76ox9IR1ZfB0jrzsPhML86FWhQxHs4z/hcG6pMMNszNxEEzbfisLs3n9FfESPl1UZCG99tpjslUrw3RpqXYKtWlS3PMiBfcQLwGBKqBDQw9YpDyA4oqMxLdgbXxaWR2f+2XUiUwlxB2491F2dvz3PSE/cHJtYPf8HPOMNJ+RQUl32T57IHVTJP8zM5RwcemM3VPEtNl5tM3uHE+Z5Tsv X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: e36a2bfa-401c-4c1e-c693-08db56062ef3 X-MS-Exchange-CrossTenant-AuthSource: SL2PR06MB3017.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 May 2023 12:07:56.3164 (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: JH7e7yfo177QbnckZkgc0vxbcGbV2Di9QAXbZO2q6hS8BoZoffRR/Py35lCq7WAaz8O4XKZDMcDgMYRhyru+SA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR06MB6279 X-Headers-End: 1pytTK-0004iu-1p Subject: [f2fs-dev] [PATCH 1/1] f2fs: pass I_NEW flag to trace event X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Wu Bo via Linux-f2fs-devel From: Wu Bo Reply-To: Wu Bo Cc: wubo.oduw@gmail.com, linux-kernel@vger.kernel.org, Wu Bo , linux-f2fs-devel@lists.sourceforge.net Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net Modify the order between 'trace_f2fs_iget' & 'unlock_new_inode', so the I_NEW can pass to the trace event when the inode initialised. Signed-off-by: Wu Bo --- fs/f2fs/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/f2fs/inode.c b/fs/f2fs/inode.c index cf4327ad106c..caf959289fe7 100644 --- a/fs/f2fs/inode.c +++ b/fs/f2fs/inode.c @@ -577,8 +577,8 @@ struct inode *f2fs_iget(struct super_block *sb, unsigned long ino) file_dont_truncate(inode); } - unlock_new_inode(inode); trace_f2fs_iget(inode); + unlock_new_inode(inode); return inode; bad_inode: