Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp575633rwd; Tue, 16 May 2023 05:18:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6AvCVopfnIDs3sl8pot6KnAyr7Dk7TogHEBD3Ezihl7eJqkncUdH6yyKUIB/TQRjYvA4iv X-Received: by 2002:a17:902:6944:b0:1ac:4163:317 with SMTP id k4-20020a170902694400b001ac41630317mr34760162plt.39.1684239490277; Tue, 16 May 2023 05:18:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1684239490; cv=pass; d=google.com; s=arc-20160816; b=Hes/SG3iqS4tmXyAITVmYwa3iI5+wF3WYN/GDSwhIi6a7E6uCblYxBJ5ZDVFQVWskx PQ9WQ3Shbg+wrd43m6GTcmqTiUXspA4q2WgxoNp7zXseVdMnutvf2SLR/mYl3WBu7N76 pwF7yGJMvt5vbpJ5NA1p6BV61FnX1lAH8Jk+VEBrowy/4x9z2sleI1bKhLHQ02l1b2qx x2Bke6bOJhv4KWH5HqSNgvPF6lvZf8aHTJhGqz+zkG5KD3UzVwniAi6Uu2aoEfHEXYl/ K7heAEgsMByyPUK6oMh7olndibwweh082amWJSh6e7zlU5LfCf1cjwwCCrNNncYG8ozw Q1kw== 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=azVh/Z/vDfLnl5EAm8i1j2xbarngxj1S2y4We6ru27Y=; b=fuuKHoOOOeoEFI6RIA9LwBGQo4YUJEU/TrG89w1Q/1E3pYvPG5wo8ig+cVmQofIpBr T/1qzfG3F/dT3IQsiK1fzM97bqN8apWk8OrrIBX4iBTwEtHAHbXHa4lNAyPa1oJCFPbv dziIPCCMyuOQb8zIYMPMxR8yVp4tOdUcSigGo5Z72qDD8AFqt5ITN/RzmrrJrCsGX0lG qttb37MZzHplzOVca26z8trkY9YU38/ib00bsOTWB6kZAGy5blMwe54lxBtUyLZHSSSS sxOPbEJK300fCThezLT4v1AS39kLQ+eqfke1OknEdEQgEdLjahOiaTA2N4EWYrt6/ypI LlRg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=NnowaGlq; 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 e21-20020a170902d39500b001ac83d28c39si9119954pld.234.2023.05.16.05.17.57; Tue, 16 May 2023 05:18:10 -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=NnowaGlq; 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 S233049AbjEPMIE (ORCPT + 99 others); Tue, 16 May 2023 08:08:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232440AbjEPMIC (ORCPT ); Tue, 16 May 2023 08:08:02 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2114.outbound.protection.outlook.com [40.107.255.114]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9BA032101 for ; Tue, 16 May 2023 05:08:01 -0700 (PDT) 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 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: pass I_NEW flag to trace event 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 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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: =?us-ascii?Q?JXJy8fPkvIes+c7JbbvrVfqsU/9kojjIL+TYcnOWs7WB18CYSFGoNWiz1KYb?= =?us-ascii?Q?Gh1rHcdjHCz00Pt9eCcQkOvSOgPpmf7MwHfAiwo8MtZ0Hu5tlPJqAVCUvHy1?= =?us-ascii?Q?HEwYBCSVhfG/TRuZterl+trgoy7IVVCar/3ggw2b+TH+zPevYtHgODVkcFA7?= =?us-ascii?Q?2N2WlS1wPo5GiDh3Im1IYseucYsep+oYBNdSBlvoAwNCfbO5Z9s33GcJJM1/?= =?us-ascii?Q?sID5AhsfMWYHHFMw0UcFHYR23S0I9oMMx2X4dPSWtiDn9604ZbJxDmQXt8Oy?= =?us-ascii?Q?oUBPIBDEQjSZDxJjuTRvKebpZgwCbp7XYlq2BWBHAwJ5/ZiY6n6gJq7W9nNg?= =?us-ascii?Q?u68c2mkSjRzqJqJWde9Sox8G+0T+Ylw8xl3ksd/9Z3+BEDbEl1m7b08LFTH9?= =?us-ascii?Q?SyWLsZT6ALxKQNvPzme23H9KF6PpdMCyJPA76+LDJbGWXd93KCikSMFUQcWN?= =?us-ascii?Q?OGRKOPd7ZPYtZUKYRB/xEBHbwJp3DQTypGmoH7fF+HakdC3FahREZCtsaTh/?= =?us-ascii?Q?vIMN4zLuf8Fmbfv3TzwlZv4ZIw/FWzXZlFmBX5m8V9NPrQiw+5HTZ7avI5TN?= =?us-asc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pqXYKtWlS3PMiBfcQLwGBKqBDQw9YpDyA?= =?us-ascii?Q?4oqMxLdgbXxaWR2f+2XUiUwlxB2491F2dvz3PSE/cHJtYPf8HPOMNJ+RQUl3?= =?us-ascii?Q?2T57IHVTJP8zM5RwcemM3VPEtNl5tM3uHE+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-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,T_SCC_BODY_TEXT_LINE, 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 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: -- 2.35.3