Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6624745rwd; Mon, 19 Jun 2023 09:46:44 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5EUJxPsPI2SuZlOS1JKzi58teLYEieDhHLBXZehDl05qG75j+wdsOSrn44tboc9lXJEery X-Received: by 2002:a05:6359:b95:b0:12e:e5e2:6683 with SMTP id gf21-20020a0563590b9500b0012ee5e26683mr7434687rwb.4.1687193204420; Mon, 19 Jun 2023 09:46:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687193204; cv=none; d=google.com; s=arc-20160816; b=mqNNk5iGcQa26Yf9fl8Ah7W0Iw2R7KFU8AIJZqXaa90LIBAe71fUr/yiyU7SCiwzu9 uYCUp1HvFMsZJKWmcdTi6WBazbZZtIB0s2c+C9RPlP8LuxvYhJQgCuAvSIWbYxqT54fa LXcE2+n56rkQrfsBIKLiYwVi5ue4RgFvsHyFK+vZuWXO4TMQlCH7yLWLWxZv1yZDLM5I RfwfckwJYjrTQmF5x3ndra7k+r6bDce/eWH4zzMI/4G62EdzP/nsH+Xbclv1oV6nEYVs oPa+6I76+QnIF+reNsIRYALJFKZW/OED+CEj7jZ+GITZeNUE4kOgwbbxhpztyvVm4EIs qTcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:reply-to:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=yLSpnZMq1VP6bVEp1wTg9KcwJ0gQP+VEqdtcmClSXfw=; b=Eytu7vSIhlPGLK1ZyIEGd8BVDfrH8hCagEIvp1gNNFfHJAQ5yjdbnG9NsMzuizTVas jKnlcmIHePzR6Qp06LSI7APrrA08CST19gRnpe6ZwXnjebnttq+bkxKxjtZoC2kFzZ6A +EHlQxuCkRNXBWM1SIP+YIfjDxTz5pcjvVqD8u58S7bp/0yL8AtMhfFeVaT+Pk6JHmGa /0SZgEXTKwKB4FWpctti3Hp+U5hFuRJNi/IJ8hAy4y/3pbOG2XPwv+DmH85fApihQyX8 o4gYHl28yBY2CnMqOf0sMTENtB8BJ93zZBL+kML9FsHqOO0OCLiM0C6W0mHqkpoIe4ES gIfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=KpXi6LHm; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bs66-20020a632845000000b0054b4670f5e0si16161134pgb.39.2023.06.19.09.46.30; Mon, 19 Jun 2023 09:46:44 -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=@suse.cz header.s=susede2_rsa header.b=KpXi6LHm; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231990AbjFSPpP (ORCPT + 99 others); Mon, 19 Jun 2023 11:45:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231607AbjFSPpG (ORCPT ); Mon, 19 Jun 2023 11:45:06 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33A1A139; Mon, 19 Jun 2023 08:45:01 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 9D1CC1F38D; Mon, 19 Jun 2023 15:45:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1687189500; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=yLSpnZMq1VP6bVEp1wTg9KcwJ0gQP+VEqdtcmClSXfw=; b=KpXi6LHmQhkuY+y/Q6sAF2+7b+oL/9RNZfRM/CyubI9zWwG/Tn2pcpQVXmK+FdDM0+0dAX CwmtJZYZNI+abcPZMVW6gpg6hKvI3ZTvPzL5U2NYHikN8Q6DhSigGhAXumMLT3jaOsxse8 ekGDLUX8unKlXwSzAg8Y6/e4JOLolgg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1687189500; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=yLSpnZMq1VP6bVEp1wTg9KcwJ0gQP+VEqdtcmClSXfw=; b=OuBoqUC+lphZI6avYQnWdhfwi2Ejqtf7QUh/g+NDloaaLyu4xG63SLonT5F/9jcnNNSkY5 6nw+y2DQVmbOl0Cg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 78125139C2; Mon, 19 Jun 2023 15:45:00 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id pMUfHPx3kGR1RwAAMHmgww (envelope-from ); Mon, 19 Jun 2023 15:45:00 +0000 Date: Mon, 19 Jun 2023 17:38:37 +0200 From: David Sterba To: Jeff Layton Cc: Chris Mason , Josef Bacik , David Sterba , linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] btrfs: update i_version in update_dev_time Message-ID: <20230619153837.GB16168@twin.jikos.cz> Reply-To: dsterba@suse.cz References: <20230615124946.106957-1-jlayton@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230615124946.106957-1-jlayton@kernel.org> User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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-kernel@vger.kernel.org On Thu, Jun 15, 2023 at 08:49:45AM -0400, Jeff Layton wrote: > When updating the ctime, we also want to update i_version. > > Signed-off-by: Jeff Layton > --- > fs/btrfs/volumes.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > This is just something I noticed by inspection. There is probably no way > to test this today unless you can somehow get to this inode via nfsd. > Still, I think it's the right thing to do for consistency's sake. I don't see anything wrong with setting the iversion bit, however I also don't see where this would be useful. Agreed with the consistency, otherwise the time is updated when device super block is wiped or a device initialized, both are big events so missing that due to lack of iversion update seems unlikely. I'll add it to the queue, thanks.