Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2537192rdb; Sun, 3 Dec 2023 23:19:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IEFYDIMn8jOaFO2dJXWdchiDSMvU2KWuvDdaSlWjPHsKu9eNN0Zwq5WTRf6lJ0Shh67/aIz X-Received: by 2002:a05:6358:9106:b0:170:302b:545f with SMTP id q6-20020a056358910600b00170302b545fmr911566rwq.56.1701674359386; Sun, 03 Dec 2023 23:19:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701674359; cv=none; d=google.com; s=arc-20160816; b=uZ1MZMYsgQ9dhlcLSYpT9Z9dzz2beOsY7nIy9R+hyhlhx4JwF0P1SxcOL7s6Ky0Luf vibwG8WWXk34xdc5LlX0aZomvuCuOhTZp4WzAiyEKMEHhU2zW0SS59ueglw+QtpsmD5i KgwpWJ11MHQZGO2cvRgJ7OqFaIA5I2TBxTf2McwcgXWdjzNqbRwXuKCXCkx3rJSvjS59 CI9fy1qS507BsPq2XanrgiEi8aoscoZACQ9R8PrjXII8NCHA9+EmkI0Y2901hh00ByrH 8hKD5/eYt974bNTcAgpJm2fF08cuOyCK0sDQqzqfPClqjpTC0RvpnyKeu88fK4aU/BKa xJhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=yY6ML3ph7CQ+D94sQfedEXVjNv2KO8ygBz1V+AY3K4k=; fh=cg1EeNJjBHzitHlKv2yLXOLtkMytRoqHTAAo1myTn/c=; b=nIsaFItBGQcuKKn9MVM9NkDGivQhBIdH7DL5lDsyRprpodwW0kfS82Sxs7wuYc0XP4 iM3wFiyuHwd2aK4WKXjEIpiaUTCGhspVcJzOPNp0hLhehzHx/iB94IV8JY6Q4n04c4v4 0klOQTn5VSQsohxtKiXZmJcVFs+BERhWdF8Ayt/fpSDn6kq7TFeNrE+50io8eT7B/gXu Bd1UNzDg9yGeEQZ104z54IqAgZh8verLNESnKku1r9ItCYaEV3Rp/BCokCx4XgCnRv0K o3vJSksTJ8+zDgw23R0ixDL2TtwqyQ5jY/ZgYyu4+ztnL6yXVHCgx23/E9un57raE58f XRUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=0KYe+x6B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id u11-20020a6540cb000000b005c278ba0fe3si7347094pgp.556.2023.12.03.23.19.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Dec 2023 23:19:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=0KYe+x6B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 12C7880491F7; Sun, 3 Dec 2023 23:19:15 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230023AbjLDHSv (ORCPT + 99 others); Mon, 4 Dec 2023 02:18:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbjLDHSq (ORCPT ); Mon, 4 Dec 2023 02:18:46 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A42FD7; Sun, 3 Dec 2023 23:18:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=yY6ML3ph7CQ+D94sQfedEXVjNv2KO8ygBz1V+AY3K4k=; b=0KYe+x6B7veqLYYz68p/bY95tN Z+UY65Qpab9ylmVas2NJaOQtXEMU0SP7Nk+RLOMPWwFGZF89ElT2dmyVPv6SqeZWGv/aV+YxcLAYh OHu/swwu3rav0aMjJ578nuMf75bdhdn3XmNA4Zo2z6uHqlUVj5KhL/cn4zovathMshVQT6LEw2q8l TBkLH/0VjWrIK8bd24FNYWtU6ZGzblFOk+uqFvxxD2INRzdoDhz+pucuR7Ir84LPE0mUoac8pJoEz kWeysFtPr0krxUy1hT1rorvM2Ykm/hmgvY0wOrjW6VLV0M9a4btKBDRyBOKu82U0YRupMWW6yVm1M G/P7ItSQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1rA3Dz-0038qQ-2O; Mon, 04 Dec 2023 07:18:39 +0000 Date: Sun, 3 Dec 2023 23:18:39 -0800 From: Christoph Hellwig To: Jiachen Zhang Cc: Chandan Babu R , "Darrick J. Wong" , Dave Chinner , Allison Henderson , Zhang Tianci , Brian Foster , linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org, xieyongji@bytedance.com, me@jcix.top, Dave Chinner Subject: Re: [PATCH v3 2/3] xfs: update dir3 leaf block metadata after swap Message-ID: References: <20231130040516.35677-1-zhangjiachen.jaycee@bytedance.com> <20231130040516.35677-3-zhangjiachen.jaycee@bytedance.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231130040516.35677-3-zhangjiachen.jaycee@bytedance.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Sun, 03 Dec 2023 23:19:15 -0800 (PST) On Thu, Nov 30, 2023 at 12:05:15PM +0800, Jiachen Zhang wrote: > return error; > /* > * Copy the last block into the dead buffer and log it. > + * If xfs enable crc, the node/leaf block records its blkno, we > + * must update it. I'd rewrod this sentence as: * On CRC-enabled file systems, also update the stamped in blkno. Otherwise looks good: Reviewed-by: Christoph Hellwig