Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1621487rwd; Tue, 16 May 2023 21:46:14 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4RIHoJJdd6NleJqdeE6rLUCNxoVmc5QCPi1/DO9stJfHk9Pc/0zgnlrCODRvsQgxsf2jH3 X-Received: by 2002:a17:902:d2c4:b0:1ad:cef8:f913 with SMTP id n4-20020a170902d2c400b001adcef8f913mr24368927plc.44.1684298773831; Tue, 16 May 2023 21:46:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1684298773; cv=pass; d=google.com; s=arc-20160816; b=S60h93J3wKZOpSsgM7EwPB51+fhs2qRMPq7nWSQT4tNSFJgncRBPsTKjwJOMU09XRu MhIwxbHGB7yp29/PmfQevRShztiSRUj0d+i+IfZ7Ss8F0W+Qu65kw+1R9ny7CQEt4kKa O3cbrwjNdyiPCPmpN0Bi25dV+LCMX/4kZDQrl7rri5k2VuzIlQd/wFPFDPuL2oRz1B8d Hu7x4KHzlEZHHGJj77p/cnGIXBgdiqy4jRbNqxOu7i2QSHe/CDCG4Ae7zr/wKBk5P5m3 HKtRO0PokTuE/eaK4jnvnlCRTe5qAW29rJVORtpkbPP0idX03BFjZvYlFyxVFyvS6Iga euzA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ecbz7H5ZAwhkF6PZ7WGk5rcrvzRtxfY/LpVtsGRuOic=; b=raXwOWr35QKbitzwjoXPrILlYbUN7Vd2J1okh8IvBCG+Znaoy4lU4bw44e0Yt4Ecvy BO06bX394LyMEzb9QWOopYugAHgZCgpheDd5ZdyD2K7edSIsNtCj2BE24N/jStctdujF hWq3lExwwLcyNvq2AT487cB6fvQAO5SEatPiFcG3FI6iiuSXhC+BMSeJkP1xDWqXS1bi QMXHLUBVV5eXMUP5J58aIOqYX8OCxEBYe4S0MsrBBpvj/t2kTvxMGP0qw7Q6c8a3yldM yLjRbp92KHZR5Oc5nEpu7OfoK7AHB9vuvbXFmPu333SeQBG0NG7UhShRtrKO41cFah6K 86Pg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=O3NE3WA5; 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 iw10-20020a170903044a00b001a522f321f6si19276993plb.29.2023.05.16.21.46.01; Tue, 16 May 2023 21:46:13 -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=O3NE3WA5; 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 S229471AbjEQEAK (ORCPT + 99 others); Wed, 17 May 2023 00:00:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbjEQEAI (ORCPT ); Wed, 17 May 2023 00:00:08 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2134.outbound.protection.outlook.com [40.107.215.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F73DDC for ; Tue, 16 May 2023 21:00:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aSNw6/u+0tOtEUksWYjqhOCfC1iylY0lxr1M6p9FOLWvazEC33XQJmEGToFYhiu9zCrJbb2o2lelFHhSxJspejI5g4h8k/GsiE8cnTpa3gcc/aKyny6/xndWmnwWl9lDqgC4rriqyz26teUXLfnJUCY2RApdpg1qBzH3xNPQ/1PCKCekly41jvutOqTtZNOS4D2xAlr56J3hdXiGD0KHxZKk75fPM15qejfGMFCNJAxZhXVWigOiTnskjWL8jL/H+bi6JqoFLfvPUJjBI+JM4x394MAS/jid2UNUhalaRCbwdlKOWDuIQ/RqlmLIJIFGxFyCrFQpYhIBN99wuLZtvQ== 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=ecbz7H5ZAwhkF6PZ7WGk5rcrvzRtxfY/LpVtsGRuOic=; b=YFelBoE6PEe166jXtiXnsItB2l5PTTUpBbb/aa15UzDkUTrZ/o8e/x8CNSNDyPUFeswwl+CrbUqX+orrxRNTf8g5elVACrcQDe1nGPBGPeDUQ6FY1M/5P2O5qA+AMPHDyyxTaZebjszMxknrjh43ilaUYsPWI/ApbuZmyGEOiUkS5cd/nBVV9kzMmJUufUDBEf2r4SCKmlrPfB/es0/ZgR9AQ4/WClptkm9sCcS1oCrCmaN7sDrlt6JMMF8ybFOFhH0zMAxG7DEyPvvnqSpnO+XVa6TxJeQrMKq+N6o7HyQ3wOdTFuz0XHNrMof/PpJvQZXA+oZrtYXleiVUGrwl3w== 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=ecbz7H5ZAwhkF6PZ7WGk5rcrvzRtxfY/LpVtsGRuOic=; b=O3NE3WA5T+n03HFpnNdqEXurmMc563Ym5N6bgjbfREr2YR2pRf8axeN0XjS3n7ETvTWabBX2K9Nv6NvFg0t3CPGrFzMFIM3G3MShPpXHjfHPcLG0Hh/0+Cf7MNKz2NYe56teSFWoqFSlxC2paMPDAZRag3EVLrj0+UCVZXMXp8JDB5vRIlvLk2LZalgNQx3gozipj4y7Zh7aunSb3ZUen2Ws2NReSlNJDZAmtvUdL64rYNAgTppeTXuAI7yQXmsCFyVn0sDBqxNZPKcvMc9o4c95wWRTxbVNxaW/07nu5t9pZJvqGAGLOfILzJPa6ns952mwZ4/aXI72aLrvj8cCGA== 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 KL1PR0601MB3988.apcprd06.prod.outlook.com (2603:1096:820:2d::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6387.34; Wed, 17 May 2023 04:00:02 +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; Wed, 17 May 2023 04:00:02 +0000 From: Wu Bo To: chao@kernel.org Cc: bo.wu@vivo.com, jaegeuk@kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, wubo.oduw@gmail.com Subject: Re: [f2fs-dev] [PATCH 1/1] f2fs: pass I_NEW flag to trace event Date: Wed, 17 May 2023 11:59:53 +0800 Message-Id: <20230517035953.47810-1-bo.wu@vivo.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <45eb63c6-a147-776a-99b5-7ac06848ede8@kernel.org> References: <45eb63c6-a147-776a-99b5-7ac06848ede8@kernel.org> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SGXP274CA0016.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b8::28) To SL2PR06MB3017.apcprd06.prod.outlook.com (2603:1096:100:3a::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SL2PR06MB3017:EE_|KL1PR0601MB3988:EE_ X-MS-Office365-Filtering-Correlation-Id: 7b2e720a-6aa6-46cc-b17f-08db568b309a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2FheQkPGK+cY+yxf9CV88PK0kiIYEJNZD0ypnbTS0LThaGo0x2Y2kK0ycfSAZZ3+hU50YUEt3NnFqVx/CkrbPjrLwrmu4XwhTEIDeyChI3V2ZKH8NP6akMUishd8zsVZtVI1qTrjQ+IdhOi9Q2RDqL6G5dd6YZCMAP/U27DYyrRV5ZUPs44XT6eKmzcotgibJfkOttjZHrXakkMXzkJll+Pl1Ro4tRIgR/RjwHs2kO3y11f+NXfs4SrMn4IC1hgeykMyWxxrhi9bo0lQEOjRdP+ZO9jY/lqvmPQtNI7bIP6VJQwU7h0zZ/wKORFcgEaJfn9nnS3mzWkgZG9fILgyMFHgbFkzOsMiD//2uFRZeE/RSwNr10bXI3Hx93mrGbDaC+FxDNpoPu2SIQX4MJCXsEQSLkuUfreq8bYK5nG4QSUllguG47JIA1YCy1+u3T4k/TAVaDjz2tas54Zpm2XL1U1nF+UI/B1SaL29H4AQEg6Y2IhNFq962D4xLqtGYHyPQc0AqLw5OlI3w1EuBv2+e1ZiV9FCr7zhnDVvvMr2rVGhGks4LsPErAA6K+/YX/3v9jKRGDJ2g0UOKQMYRG9VIdwpsOY9LV1n544+iC/kqz0= 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)(376002)(136003)(346002)(366004)(396003)(451199021)(83380400001)(53546011)(966005)(478600001)(6666004)(6486002)(52116002)(2616005)(6506007)(26005)(1076003)(186003)(6512007)(2906002)(36756003)(4326008)(38350700002)(38100700002)(6916009)(66946007)(66476007)(66556008)(41300700001)(5660300002)(316002)(8676002)(8936002)(86362001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?uIFjZyV+inuMZMN+BS3KKIm6oYTvj623HNhmSUxenoP2rIq/bIx7+vLp4EcF?= =?us-ascii?Q?/aycpkPT349tzjxDJSiXyLbPP+k3WRMfnun7+SPpLQSp7kYlOIGOyd4sfULU?= =?us-ascii?Q?1yIWW1s/etzKfcKfNRHwxUGHAgOcrcWnFeqV939vzUvoIuT7224vO0x2NSG9?= =?us-ascii?Q?aCWBarNBcQFyR8kKnqoyCFnsEQuB1g7q2fDdwgsthghLB/8fhag7Kwn3bsiD?= =?us-ascii?Q?aGju500AdMcYKJH0heXNSct1E/h0TM3pXRV1zR3eCHKLju2F5t2a2iJwlkhP?= =?us-ascii?Q?SH4iT8qDGMv9R9tcgDfQCmuhIx4V7rhZBoiT8QZtSTqWhNmsZXVNQJgYRqF8?= =?us-ascii?Q?XRZJiNo5IrVSSkXI22SAupYGWcRaQLDbh1Vc5ejiqs2MvBJq0BJpQr4qRouv?= =?us-ascii?Q?N9l9OU/wqTDaHBHaIxEwH+//cuANSUqaVbUgA5NUJp+rFde+ovC60bsO7fAl?= =?us-ascii?Q?BV2LTBmy8DA3y7LwwMltoARmMacOPizX69YlPdZJjRQa9LmMD+aogble/of1?= =?us-ascii?Q?S/Pl9GX63lRPQ7GL2TBLsecGKRdSZBoTSIo5Spyr+vWKDNrteqgaADzCKDW5?= =?us-ascii?Q?BEngnQVAA/gTYRO29kswOo+YAjrVni2vh43L0y8YCZraappSAUmwMdveoMdp?= =?us-ascii?Q?td3o+533SKCj3uAw4G8+8ddwwYbEHmoNVTiLo7RNwP/VKvC8t3J5XTJk1Mt9?= =?us-ascii?Q?OyevEiniMpvnuPXcNCiix8HA5lDR/z1GOGr025mOBuKzf43MK8wc5xgsH3kl?= =?us-ascii?Q?7z8+ZdZqYweuS4K49h2feYyzn8SyGSCqcNjofxRHFT1SS1MI36PrjmQrHfB2?= =?us-ascii?Q?+pVN7z4b/7+464DONsey2B1EO8jnU+tLZZ4WMWTN8OvbRiRfcQgM+wPNaw1+?= =?us-ascii?Q?UQmfcr2f+5V+2vo3HonENAtmOfJONz5+4HX4WoNULTPqTH/pMZZixu9GLJHe?= =?us-ascii?Q?ToyJU0G5C4nzRcj/N5bBq8PPE/HsyFJJmVQZe46bU5Hg5EUj+csHNueYtOfV?= =?us-ascii?Q?YZZt15f+tsCuKnexU2s/g9DpWprmh1aWUjwFGLbYBa7c8pzptJx7E7tnC5Q6?= =?us-ascii?Q?SzzCVJSQ9TTUVSHy1uK4V11BR5kRB02RlPQvGYPn0ZEfrOPrcMr3whvleyeF?= =?us-ascii?Q?LOcxHb8+AZk7tHJV1rNCuG6osK2bz893k7W+BLVF7sparRQiWvXW98hMoTTT?= =?us-ascii?Q?Xj+GZY2pM9dKU4a3K0QuPaYqMqORY5WK5NWCsL865z7W/aKk7r14eRmbo3Eu?= =?us-ascii?Q?u3r1PJP8JWhZyU9X6OBNV72xYtgNqOLiB6hQt3yY2CiV0MtH486u1xHPO2qS?= =?us-ascii?Q?BTRUjRSefNU+JJKALYJyuWR4l+Jpzb1ZahK0OyM9r7aX0av7ErabY+D2P8rQ?= =?us-ascii?Q?PCrg0HRQnlkSCYmu0sdjQJ+JPTmnyjhFX7pxRZ2QArYDaCakK40jpFsT1TOY?= =?us-ascii?Q?6o8tt1AH9pIbXML2mRc2JHBOJLYf9skAWzh6PivFNbu1aYbGbfX+iJDqi+MK?= =?us-ascii?Q?h2BczBbNifeulmivQSBZaPGqm6jceD+XUqhWX33KRZct3FAp/vI74GZVO2aJ?= =?us-ascii?Q?pfQdihkmuQUXK42xOd63Nm1HPR7uBLdOHBfsoMY9?= X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7b2e720a-6aa6-46cc-b17f-08db568b309a X-MS-Exchange-CrossTenant-AuthSource: SL2PR06MB3017.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 May 2023 04:00:02.3044 (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: 05tXIJ/CTyAhCzcvsq22mmvu0VtJao/2LiLwdmnctqfUrVs5vzkhzuWFPliFrnYcT7yf7AxRq00RnmlDJ0z8CA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR0601MB3988 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 On 2023/5/17 10:44, Chao Yu wrote: > On 2023/5/16 20:07, Wu Bo wrote: >> Modify the order between 'trace_f2fs_iget' & 'unlock_new_inode', so the >> I_NEW can pass to the trace event when the inode initialised. > > Why is it needed? And trace_f2fs_iget() won't print inode->i_state? When connect a trace_probe to f2fs_iget, it will be able to determine whether the inode is new initialised in order to do different process. > > Thanks, > >> >> 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: > > > _______________________________________________ > Linux-f2fs-devel mailing list > Linux-f2fs-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel >