Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp222766rdb; Thu, 19 Oct 2023 02:29:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFrOFCsOdSgjywwOOV9eNCpdkpkGm58L4EBEdCSHpRQLYcCj4a2CQ1VP1MamTVfdLf3O+// X-Received: by 2002:aa7:8885:0:b0:6be:5367:211b with SMTP id z5-20020aa78885000000b006be5367211bmr1624262pfe.3.1697707773712; Thu, 19 Oct 2023 02:29:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697707773; cv=none; d=google.com; s=arc-20160816; b=vEqmng6UcLKEGmysRT9hd2KKQgnO9VOaTOtxfJfisfIVpJCFPyqh2WQP1NcV//dOBO 0z75GOB0UIUe95ZpHiqSZ4BXILYummK7i9e2L4D5l4HDx+zOU3ovXSKhnf2M/mjdkS2t btlzDnC3XrWMuBGMXPR5JsOq1Ykyin1HheWC8PppsoH/bV0LUZMsphiKc2H2RKkGnCpZ TD6/3EH42QArBlwN7BXrhb6MhHIvhzCqADc60/S40EAK58KtbnK8WaW+PMS+GFRrStRc +KF+9lSxVPmyGbLGekAWG2kXXYffvAZ595DkVgk7TkNChHbSMV16UvuMo0qJNv3mPEXI JJEg== 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=mgC5Uk5GDFUvdP8Pqt/QatzxXAmYL0YpW2lpmjgXRXo=; fh=T7YA3yOVHAyzs9EpvlK55AUjjUEWwUhAdAtqSafbRmk=; b=aMnUhSygXbJcp8Tq4hRL13p5aaHkiS4X4BmmM0L6vFx5g9bKZxVlDEL+I57r8l63xJ j3H0O4hyNu19UK/bu5Sh8hayQqNtSVShqJPqJE3p1ef3Fh150f5WMtvIAwGX8secDluT 57x4lCcwX2n4Ds1zEXy0iYWSRTeRItgDbza77S0vrCOo6Pv0fbs3N1YaLCusosSVLNAj Fe5hgTsX3uNVa+4f/9c/RbRe+x/I8gUxspfep3Y4Z7VrIYiU7I6MyKzb/0iuaRBOa3Tn SV3qpxfEpbr3EvLDMfzmHKDSn90P5HUQBodKo/UlpezUXDJpFSUHZnH3fR5DxkeZK0QE iPGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Akk8XbjD; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.36 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. [23.128.96.36]) by mx.google.com with ESMTPS id n5-20020aa79845000000b006be062e4ecbsi5719634pfq.32.2023.10.19.02.29.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 02:29:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Akk8XbjD; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.36 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 96C7C819D9C1; Thu, 19 Oct 2023 02:29:25 -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 S1345043AbjJSJ3Y (ORCPT + 99 others); Thu, 19 Oct 2023 05:29:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344979AbjJSJ3X (ORCPT ); Thu, 19 Oct 2023 05:29:23 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68E0298; Thu, 19 Oct 2023 02:29:22 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B8202C433C8; Thu, 19 Oct 2023 09:29:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697707761; bh=pxF/qlOAYAx3vhRa3N2z4pQJEwL4Rx1j8JuRrkeWQ9Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Akk8XbjDzYlsS3LMaveazcyIGPYT4DucacgiYEdLUsG9DE37MYww77gNzF8oD0aIz ivYs6S62MDqSkKZ2FSGs0EmDEo8tocNJK8foS47nkvwPPrwXEYbvlmNJREcl85jaSo W2BVMZYKsVeUTLgaD8Glg3bCDKmcsXMB4TQ+drVb8NJMw3lHm496br86KHTQZ/8Zyb g/RsWsns1nYNpbj9jPm/YNq9u/5F+tr6mqZODsyxp9EIv/pRppQ674gaTd+0b+V+Cj snsoxrWMyEcUDbEv+U6dRWrQlgFx/kgAx8uWCE3zgeH8LlxfATd2AlTC/m2t5XRPaa Uokex6cURRqGw== Date: Thu, 19 Oct 2023 11:29:11 +0200 From: Christian Brauner To: Jeff Layton , 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 Subject: Re: [PATCH RFC 2/9] timekeeping: new interfaces for multigrain timestamp handing Message-ID: <20231019-fluor-skifahren-ec74ceb6c63e@brauner> References: <20231018-mgtime-v1-0-4a7a97b1f482@kernel.org> <20231018-mgtime-v1-2-4a7a97b1f482@kernel.org> <5f96e69d438ab96099bb67d16b77583c99911caa.camel@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <5f96e69d438ab96099bb67d16b77583c99911caa.camel@kernel.org> 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 02:29:26 -0700 (PDT) > Back to your earlier point though: > > Is a global offset really a non-starter? I can see about doing something > 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. 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. > > On another note: maybe I need to put this behind a Kconfig option > initially too? 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. And for NFSv4 we actually do introduce a proper i_version for all filesystems that matter to it. What filesystems exactly don't expose a proper i_version and what does prevent them from adding one or fixing it?