Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp278046rdb; Thu, 19 Oct 2023 04:29:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHkjIwZsipBvWs5Xsy71KL/86Fom335IJEj93m+tG96BkRXy45ezbGCKZfo6YLTDi4Hilaq X-Received: by 2002:a17:90b:4c81:b0:27d:192f:1dc3 with SMTP id my1-20020a17090b4c8100b0027d192f1dc3mr1787293pjb.19.1697714956433; Thu, 19 Oct 2023 04:29:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697714956; cv=none; d=google.com; s=arc-20160816; b=XCzp4rQZ4CQI6aBWwiRe5E0b4A2p76+XKoavRCMNEcyvef5w0WsRVfVzuAcb9O5MXW M+b3LUaIsLnMiX0goFFrrxXjfEXc1MGu82em6NezWjUvNNKGzSuchK7TaJXoenBEv/Ll Ax1O/4RIq6hM558nNwDpykFeO9MonnFCIIj9RZ+0Cg7MHynaBvM9d1LKZnjYfacmQgt7 zFOVD//0XYimn34mZqRWaNXlkyHXB/Crcyail34Q2++fcT2hh4V/ID29a/4v0B1UHopC GXLjavQUi2+VPdjDqTTNKFtPafC7emWqjX8H+JIJDygcvSFEUa1QGT6J5EKq6p3WJJtw JIDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=frnWz1sFRBQuYonb5RmQwPk5jf/lF7GP4WLN8JSXa7M=; fh=MVsRGmETc3EeDJQ3EooolAMaphKA3RigZgbLM3UmRtQ=; b=j/8fu/tnG0swhPu0IPF5bC/L8v4nne9J9V2oAWpeYub+fkeoJfdVH6I/YdruFNFLr7 /b+Bn019e5e271oN6vIdU/qD/Jeo6Kit+9dW2/fmSKp8P9bsfAXKTzzuCxv0he/QSCs4 A4Bj2Yn6CoUg1RYB1NbTIOidcTAdMZlldsK9qp//3h1MQ23hShhmzGwbpm8oW/TxTcPU 72b0XabVV/ECJlsIo0CrcLjcG0F69dgUfR7UsXFgG7D8iOZJtCnGO+zcQSKFDayeveIa QM3IcG3WPFTjgTHSguGtJwt6+WD9E4PzcbPO6T84MeCSMpqjhKgKE/U8oSMvMEk2sNPV rvvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HBA7HSvG; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id lp11-20020a17090b4a8b00b0027d113631f0si1994831pjb.24.2023.10.19.04.29.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 04:29:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-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=@kernel.org header.s=k20201202 header.b=HBA7HSvG; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 7112681A4FF4; Thu, 19 Oct 2023 04:29:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345387AbjJSL3K (ORCPT + 99 others); Thu, 19 Oct 2023 07:29:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345364AbjJSL3I (ORCPT ); Thu, 19 Oct 2023 07:29:08 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4449110C7; Thu, 19 Oct 2023 04:28:53 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 18A89C433C7; Thu, 19 Oct 2023 11:28:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697714932; bh=frnWz1sFRBQuYonb5RmQwPk5jf/lF7GP4WLN8JSXa7M=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=HBA7HSvGoIRn7e8pKkbEW9dLvkhR6UbP9YryXoyb0yOjeGBF3+t2/uXVAqhO8+5XZ g0zjGzFjnXF/LfXiIIdiO8O+s2WH1DbOU5PxZHMy5BGmXDF1pxMFXw5belLfcYtN7H 99/gEqDLZv0OG5nrh2/sMZTcmW/PdfrhuOSXelnXPQnJC1BordF3CwVUQNbDT7FTNG nn177O3fNCLQE2ooDHVnWEyFQh2gHAsFOuYPrlz1K/YrfOpU/ht9vUd3N/Bwu8Bm8m 10CRzoGlUcfNESgswU4BLKxSdAsGBM5bqEhUzQbS/iUBrFcZX0/oc11HUt7teGBqNa 7K8NLvWb7IZrw== Message-ID: <0a1a847af4372e62000b259e992850527f587205.camel@kernel.org> Subject: Re: [PATCH RFC 2/9] timekeeping: new interfaces for multigrain timestamp handing From: Jeff Layton To: Christian Brauner , Linus Torvalds Cc: Alexander Viro , John Stultz , Thomas Gleixner , Stephen Boyd , Chandan Babu R , "Darrick J. Wong" , Dave Chinner , Theodore Ts'o , Andreas Dilger , Chris Mason , Josef Bacik , David Sterba , Hugh Dickins , Andrew Morton , Amir Goldstein , Jan Kara , David Howells , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-xfs@vger.kernel.org, linux-ext4@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-mm@kvack.org, linux-nfs@vger.kernel.org Date: Thu, 19 Oct 2023 07:28:48 -0400 In-Reply-To: <20231019-fluor-skifahren-ec74ceb6c63e@brauner> References: <20231018-mgtime-v1-0-4a7a97b1f482@kernel.org> <20231018-mgtime-v1-2-4a7a97b1f482@kernel.org> <5f96e69d438ab96099bb67d16b77583c99911caa.camel@kernel.org> <20231019-fluor-skifahren-ec74ceb6c63e@brauner> Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) MIME-Version: 1.0 X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS 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-nfs@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 19 Oct 2023 04:29:11 -0700 (PDT) On Thu, 2023-10-19 at 11:29 +0200, Christian Brauner wrote: > > Back to your earlier point though: > >=20 > > Is a global offset really a non-starter? I can see about doing somethin= g > > per-superblock, but ktime_get_mg_coarse_ts64 should be roughly as cheap > > as ktime_get_coarse_ts64. I don't see the downside there for the non- > > multigrain filesystems to call that. >=20 > I have to say that this doesn't excite me. This whole thing feels a bit > hackish. I think that a change version is the way more sane way to go. >=20 What is it about this set that feels so much more hackish to you? Most of this set is pretty similar to what we had to revert. Is it just the timekeeper changes? Why do you feel those are a problem? > >=20 > > On another note: maybe I need to put this behind a Kconfig option > > initially too? >=20 > So can we for a second consider not introducing fine-grained timestamps > at all. We let NFSv3 live with the cache problem it's been living with > forever. >=20 > And for NFSv4 we actually do introduce a proper i_version for all > filesystems that matter to it. >=20 > What filesystems exactly don't expose a proper i_version and what does > prevent them from adding one or fixing it? Certainly we can drop this series altogether if that's the consensus. The main exportable filesystem that doesn't have a suitable change counter now is XFS. Fixing it will require an on-disk format change to accommodate a new version counter that doesn't increment on atime updates. This is something the XFS folks were specifically looking to avoid, but maybe that's the simpler option. There is also bcachefs which I don't think has a change attr yet. They'd also likely need a on-disk format change, but hopefully that's a easier thing to do there since it's a brand new filesystem. There are a smattering of lesser-used local filesystems (f2fs, nilfs2, etc.) that have no i_version support. Multigrain timestamps would make it simple to add better change attribute support there, but they can (in principle) all undergo an on-disk format change too if they decide to add one. Then there are filesystems like ntfs that are exportable, but where we can't extend the on-disk format. Those could probably benefit from multigrain timestamps, but those are much lower priority. Not many people sharing their NTFS filesystem via NFS anyway. --=20 Jeff Layton