Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp2911379rwa; Mon, 22 Aug 2022 16:45:13 -0700 (PDT) X-Google-Smtp-Source: AA6agR7OmtKbIEqnMIsWfA5bSn5cimD3vbIYU145RXYGUZ6mjFGxWl5sZ7pADUg8YPCvf6lQ2LjK X-Received: by 2002:a62:834d:0:b0:536:e993:7319 with SMTP id h74-20020a62834d000000b00536e9937319mr2220755pfe.63.1661211913435; Mon, 22 Aug 2022 16:45:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661211913; cv=none; d=google.com; s=arc-20160816; b=szNpcvIuwuiYyVMrstq7IoR6f41tofVympOqVilIO4Bo0pxsQCHNJCItnmNrZ9mAP3 +Il/82WLijzawwfvW0zpeMxcexawoDrKx41v1EGhZkayCf7vpmCTHED8GyT4gtwSRx2g qhmJgbJW3Ms8weoQYeM3HcbNj3U23WTCPBNj8OHCsZEPy88+uU0y5HOqYR2m7fWO/WK+ G3AYYPHmfxNpbfwa1Wv7x79bIzctZdLsegKlXKjapxrsnbUvBbH0ZylaCdiHjnFwC9Kn mX8RiQTGVOe7WNi53How9Y780NjSdLzT+PhrXJxhMA0X9P7z21AtsGWEQBJDSAApSi6l wECA== 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; bh=7ut7ynfByE3zEYbXVSSXMGExOACI/fH71yjYoIBYlMM=; b=FVPhQqps6dsE/MQzLEpVpUTi2E7FhBvvLwf6LRq5I111NxsCzj2dqNeaar80DiNgw7 HnoCQBn5bgB8TB08lwrO3EcrZNI+WyCX9BdUXqAwk9VHagDkecB9sJ0fLEl48TIXvJ98 YKh3JXU+eERJVvtR/lLhaVjLskSSlDgAAoKiH4hdgwpyhAiOUU6hnHymwMDYzUmJjT6h MQdK3TBFC9/+ZHTtBFKFHvFgqCSVpsto3JziBcvRKCD44tDoeq+0C/57+e5y4QxJtm33 KiUS5Ym3Gwah8E+RhdBnySfiHopn8F4dFaBU0UzzWeYztND/fBJG8KVK3SE57MCmS1CF zhAA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-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 u6-20020a17090341c600b00158643c240asi4317693ple.87.2022.08.22.16.45.00; Mon, 22 Aug 2022 16:45:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-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; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235313AbiHVXep (ORCPT + 99 others); Mon, 22 Aug 2022 19:34:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233004AbiHVXeo (ORCPT ); Mon, 22 Aug 2022 19:34:44 -0400 Received: from mail105.syd.optusnet.com.au (mail105.syd.optusnet.com.au [211.29.132.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 91E68564E0; Mon, 22 Aug 2022 16:34:43 -0700 (PDT) Received: from dread.disaster.area (pa49-195-4-169.pa.nsw.optusnet.com.au [49.195.4.169]) by mail105.syd.optusnet.com.au (Postfix) with ESMTPS id DFAB310E8EE0; Tue, 23 Aug 2022 09:34:41 +1000 (AEST) Received: from dave by dread.disaster.area with local (Exim 4.92.3) (envelope-from ) id 1oQGwK-00GLjR-2u; Tue, 23 Aug 2022 09:34:40 +1000 Date: Tue, 23 Aug 2022 09:34:40 +1000 From: Dave Chinner To: Jeff Layton Cc: "Darrick J . Wong" , linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-nfs@vger.kernel.org, linux-integrity@vger.kernel.org, NeilBrown , Trond Myklebust , David Wysochanski Subject: Re: [PATCH v2] xfs: don't bump the i_version on an atime update in xfs_vn_update_time Message-ID: <20220822233440.GK3600936@dread.disaster.area> References: <20220822134011.86558-1-jlayton@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220822134011.86558-1-jlayton@kernel.org> X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.4 cv=OJNEYQWB c=1 sm=1 tr=0 ts=63041292 a=FOdsZBbW/tHyAhIVFJ0pRA==:117 a=FOdsZBbW/tHyAhIVFJ0pRA==:17 a=kj9zAlcOel0A:10 a=biHskzXt2R4A:10 a=7-415B0cAAAA:8 a=SEtKQCMJAAAA:8 a=20KFwNOVAAAA:8 a=VwQbUJbxAAAA:8 a=QkFuO-hpO70cwR4qdtIA:9 a=CjuIK1q_8ugA:10 a=biEYGPWJfzWAr4FL6Ov7:22 a=kyTSok1ft720jgMXX5-3:22 a=AjGcO6oz07-iQ99wixmX:22 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_NONE,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-nfs@vger.kernel.org On Mon, Aug 22, 2022 at 09:40:11AM -0400, Jeff Layton wrote: > xfs will update the i_version when updating only the atime value, which > is not desirable for any of the current consumers of i_version. Doing so > leads to unnecessary cache invalidations on NFS and extra measurement > activity in IMA. > > Add a new XFS_ILOG_NOIVER flag, and use that to indicate that the > transaction should not update the i_version. Set that value in > xfs_vn_update_time if we're only updating the atime. > > Cc: Dave Chinner > Cc: NeilBrown > Cc: Trond Myklebust > Cc: David Wysochanski > Signed-off-by: Jeff Layton NACK. We need to define exactly what iversion covers first before we go changing how filesystems update it. We only want to change iversion behaviour once, and we want it done right the first time. -Dave. -- Dave Chinner david@fromorbit.com