Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp3604785pxb; Mon, 21 Feb 2022 01:35:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJzBsQL6eTlN2vNHDTYH80CPN3WESGzRwTMSCGa8brYXwQaWDxGlo82UilOnjXNpz/YL9bWZ X-Received: by 2002:a17:907:8a04:b0:6b7:ebf1:efbe with SMTP id sc4-20020a1709078a0400b006b7ebf1efbemr14569169ejc.488.1645436140581; Mon, 21 Feb 2022 01:35:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645436140; cv=none; d=google.com; s=arc-20160816; b=jLFk5tAJvmejqomHM9vXq+csGyrrXt2ppSzGmgCQvi6I5jn6yA5mWAGb7uG/XczN8i PGRxun1tVVkyoGypRYpe0N4SgRXL8VMamflOKhu5VvNtEszuOdj+Oxd7O46OgkbqN34S Vkgo16qaDXHBILjq9W/FvJB6wltwhxJHdNO38T0KVhQ9SNXfDev1Q+BfLOwtwnHQrPu4 tCyUoeUHAlPrOUmdXXJjW9PrLovZC8aA/oTA1TDzXX03zCJwYtenuccAB7nEEnHdXIA6 V2Y6Pyvir0LTFgYSi6PJm6Lf8ou2DoRFS3s3wYYrH6tzX8t1hnS6Zf3qYucLD27pFZCc CkgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=bBNparwPhURsBGia4YUQYMj+0StJ6QsvXHC2lL+Tz2A=; b=Q2l85L5yQe79B9cE2zCsPsjnZqSoHSa/nFpt9Z2crJ2Y6fxkx0nE+CT1Xb96tJGgB5 OCWhIEBrvovDHbJzjAW+C5qTwbVZKS7Jf4mvJNbE0tEq17XxnYlGY/1nndBnzjnZnP7H IOKhNymHp66eBF/9Z+cDw6eHEYaD+bMOFTUp2b85r1IWjcpw+wY0CZaYclN/TGiX/M0n bLfa9/KKzVAT0Bdivtl1wA/efgZ/CTHDE/Fsu7EutcJPq1KjKn9ae5vp5BFv3xijNPrm TLmuhModmYPM05X1/UEeKM2cFLZgl0GWlpRtxXErw3WH7DTTTcXrgPJJt+7BXvUQ93ne +y6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=IHFgIOL1; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wn10si4749297ejb.0.2022.02.21.01.35.16; Mon, 21 Feb 2022 01:35:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-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=@ibm.com header.s=pp1 header.b=IHFgIOL1; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237927AbiBUIAL (ORCPT + 99 others); Mon, 21 Feb 2022 03:00:11 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:50120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238693AbiBUIAK (ORCPT ); Mon, 21 Feb 2022 03:00:10 -0500 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1833825EA for ; Sun, 20 Feb 2022 23:59:48 -0800 (PST) Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 21L7IXoH028389; Mon, 21 Feb 2022 07:59:44 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : to : cc : subject : message-id : mime-version : content-type; s=pp1; bh=bBNparwPhURsBGia4YUQYMj+0StJ6QsvXHC2lL+Tz2A=; b=IHFgIOL1DSvWJM6i21CAnLXH9kJ5zdYCqgHTuJWbAAV4pkROUy60gOr7+LZzlwXUSQcW iB+sgTPZ3MkH0dSFzkSauiO2a7Qq93r3zN9c2DfeFKwXw2I0BSqv1md9Ej7ydfHlT3F0 60Aj1xnXl0eqW6bEYGMvr7F4ab1guqv7iNU8CVmKu2tEvySVt0DUum0ZPcWFKzDPiUlr gHz2jSvJbk1dE6zAJCxcwEvxvglMvEMz//XjjRjXFH9wfnRYqv7bAzXLocXIrcqcMq3G /HSg3m3cbJbr7gt7YVYhlsj3j3kCYHNWCR/iK4FF10HTDf1k3wJkh6xFgAagpi7HNebu 8w== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 3ec67wrnwr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 21 Feb 2022 07:59:44 +0000 Received: from m0098393.ppops.net (m0098393.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 21L7KMlt032296; Mon, 21 Feb 2022 07:59:44 GMT Received: from ppma04ams.nl.ibm.com (63.31.33a9.ip4.static.sl-reverse.com [169.51.49.99]) by mx0a-001b2d01.pphosted.com with ESMTP id 3ec67wrnw4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 21 Feb 2022 07:59:44 +0000 Received: from pps.filterd (ppma04ams.nl.ibm.com [127.0.0.1]) by ppma04ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 21L7wpOO016389; Mon, 21 Feb 2022 07:59:41 GMT Received: from b06avi18626390.portsmouth.uk.ibm.com (b06avi18626390.portsmouth.uk.ibm.com [9.149.26.192]) by ppma04ams.nl.ibm.com with ESMTP id 3ear68rgcw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 21 Feb 2022 07:59:41 +0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06avi18626390.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 21L7n5EA50004476 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 21 Feb 2022 07:49:05 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 754214C050; Mon, 21 Feb 2022 07:59:39 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 11A554C04E; Mon, 21 Feb 2022 07:59:39 +0000 (GMT) Received: from localhost (unknown [9.43.127.119]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 21 Feb 2022 07:59:38 +0000 (GMT) Date: Mon, 21 Feb 2022 13:29:38 +0530 From: Ritesh Harjani To: Harshad Shirwadkar , "Theodore Ts'o" Cc: linux-ext4 , Jan Kara Subject: Query regarding fast_commit replay of inode Message-ID: <20220221075938.g2lncbi7sxnnbrhr@riteshh-domain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-TM-AS-GCONF: 00 X-Proofpoint-GUID: OBaW-fVr5U0T9GM5OVWNtyrR8_B05WZm X-Proofpoint-ORIG-GUID: wyFACzNKqf7v-AkUeB06JfwqiXAa04VO X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2022-02-21_02,2022-02-18_01,2021-12-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 spamscore=0 bulkscore=0 impostorscore=0 mlxlogscore=999 mlxscore=0 lowpriorityscore=0 clxscore=1015 suspectscore=0 phishscore=0 priorityscore=1501 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2201110000 definitions=main-2202210047 X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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-ext4@vger.kernel.org Hello Ted/Harshad, I think we did discuss this once before, but I am unable to recollect the exact reasoning for this. So question is - why do we have to call ext4_ext_clear_bb() from ext4_fc_replay_inode()? I was just thinking if this is suboptimal and if it can be optimized. But before working on that problem, I wanted to again understand the right reasoning behind choosing this approach in the first place. Could you please help with this again? ext4_fc_replay_inode() <..> inode = ext4_iget(sb, ino, EXT4_IGET_NORMAL); if (!IS_ERR(inode)) { ext4_ext_clear_bb(inode); iput(inode); } <..> I will document it this time, so that I don't have to keep coming to this everytime I look into fc replay code. Thanks again for your help!! -ritesh