Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp1261018rdb; Fri, 20 Oct 2023 13:07:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF96UcwtkR7zc3h+DzunwmT1uq3tsue50yHrbdTUYFuh0mwfuVW+WSFnTYi1uSCKCJ+f1kE X-Received: by 2002:a05:6300:8085:b0:15e:707c:904 with SMTP id ap5-20020a056300808500b0015e707c0904mr2899509pzc.24.1697832426386; Fri, 20 Oct 2023 13:07:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697832426; cv=none; d=google.com; s=arc-20160816; b=tbWokF7WEb59+geD90b9LsFfn5nGsiiHw2jmHTzkrhAx66gvEO7owPTgoQ0P7LpedZ f+QLZ2mPIK9atdvsHuxEoqs2OIIkWCUsmhXs1c8hsffLf2RNwUupMIrZx0B1/0J+FIme B1WUl8SE8yEK6KCKrHaT1rJ4M8xiyoSjDeXmE+w77f8HsM5BtGg7RWqeyNWpfHTUxs9T 2lDY5b71ED0CCrNTdOmYmjGmxRdNOTHSOwvO5SJYGQ92dXM5wXzlNxG2Oa1W1lyiLgKj 9WABew4PFA1LQApqEI14f/uF+Kn9hX+d6LWqc1vh4eJC3DJsRda2V7pXGfKi8UGaHYyb rIKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=FJwcfh7XT4p/d8xdEQd3o4yb8QA8P7Clkcjdf6k/CEg=; fh=pUs9RNavL2VjdpmCHaoxmVknX2/zvYDErmBLYBHd0BM=; b=Kts4u9VcB/V5wtIwvtS4h7I0S4Vi5UH1OwK3wqvMiAPm5s40Yt5KifmbpBECxeRhAE 3P2Tx1nQL9dEvkH51IwlLjprxnJSdHxV7Sbfi51sF3XPp1Galw+/jBd368x0ETNSvhTD ibMT01ofVak2AyJ7Ks8o6qAUOMuCsjM4Pd6aHAKCVskighlNBWk+xUIt3OGy12JfVTJQ IGbenQQbbm0mu5sHKRqfI2WiQzG0f4EgMl+ovXeuluwYKt7xNjqWNj1Y6PbzhDEHlNdJ 1s8tQJlMyyp6Vf9aNRkqsIyCMznQtq9JjLW7fNL0Nqn9e1N4i06WbKCJCFrNtRaSNo+b obGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b="EfK/H/GL"; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id c6-20020a056a00248600b006bc3f09ea09si2715413pfv.26.2023.10.20.13.07.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 13:07:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b="EfK/H/GL"; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 0064982D2B6E; Fri, 20 Oct 2023 13:07:03 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230062AbjJTUG5 (ORCPT + 99 others); Fri, 20 Oct 2023 16:06:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229603AbjJTUG4 (ORCPT ); Fri, 20 Oct 2023 16:06:56 -0400 Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7DFD6D65 for ; Fri, 20 Oct 2023 13:06:54 -0700 (PDT) Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2c5087d19a6so18652541fa.0 for ; Fri, 20 Oct 2023 13:06:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1697832412; x=1698437212; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=FJwcfh7XT4p/d8xdEQd3o4yb8QA8P7Clkcjdf6k/CEg=; b=EfK/H/GLHx0/aqNqd/ehf8SerD5bueKNAIIvBIi/aGQCOt1XlGC78879l7Zp7buCuL t2CV3kMlUg1OVKtRm9uNuIoRI+jylsojzmhVpdG7jt/RF28GUQkpJqfmQYQpuga5Npo8 yLM/mZfrOpsTh504cehZyfwfrx15cTdPW5KAA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697832412; x=1698437212; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=FJwcfh7XT4p/d8xdEQd3o4yb8QA8P7Clkcjdf6k/CEg=; b=pbeUrSGlpNa3VFrOPiZ0bgBj9BMmJUPg/+PG6KakD9yDYu9OJUEOcKB/vDDIZdPYQA mNjWPgiHnb5YDSTkofeoVAl7jlpz/BQ+Ja0MkE5NE0LHOAtnuvuIVJKLXnxwUQYoTORG oAH2h66hGH4vEzMgjP27rMkE6tCvV/jj4/b+HHP8SBpq14Vl1fMR1I/XCRKQtnRDCVjJ TjAmkvllwblN/x21rVMYN612x/aBaEqEVN4L43H1G7WOSDCBeHQcrK5VQaPMk3E9S2lz ZsZ7eXxHbbegG+NBQxXSDeWZSBtEeF4I7VVOwdnsBtRvWMpkr2sLi3W14dkayz/FkZ6f ryzQ== X-Gm-Message-State: AOJu0Yyeu/yLyrz87/Ul+Pg2eda9e/i6WQbkiZx1JFaFlMVhTlOj+dQD oC72dE7g4+SaKf2R325Qq/IDwmL31RoVSFXumt1agsed X-Received: by 2002:a2e:8610:0:b0:2c5:6d8:8dfc with SMTP id a16-20020a2e8610000000b002c506d88dfcmr2003858lji.13.1697832412498; Fri, 20 Oct 2023 13:06:52 -0700 (PDT) Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com. [209.85.167.54]) by smtp.gmail.com with ESMTPSA id z14-20020a2eb52e000000b002b724063010sm512750ljm.47.2023.10.20.13.06.52 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 20 Oct 2023 13:06:52 -0700 (PDT) Received: by mail-lf1-f54.google.com with SMTP id 2adb3069b0e04-5079eed8bfbso1689682e87.1 for ; Fri, 20 Oct 2023 13:06:52 -0700 (PDT) X-Received: by 2002:a17:907:c1f:b0:9ba:65e:752b with SMTP id ga31-20020a1709070c1f00b009ba065e752bmr2061794ejc.39.1697832390868; Fri, 20 Oct 2023 13:06:30 -0700 (PDT) MIME-Version: 1.0 References: <20231018-mgtime-v1-0-4a7a97b1f482@kernel.org> <20231018-mgtime-v1-2-4a7a97b1f482@kernel.org> <5f96e69d438ab96099bb67d16b77583c99911caa.camel@kernel.org> <20231019-fluor-skifahren-ec74ceb6c63e@brauner> <0a1a847af4372e62000b259e992850527f587205.camel@kernel.org> In-Reply-To: From: Linus Torvalds Date: Fri, 20 Oct 2023 13:06:13 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH RFC 2/9] timekeeping: new interfaces for multigrain timestamp handing To: Jeff Layton Cc: Dave Chinner , Kent Overstreet , Christian Brauner , Alexander Viro , John Stultz , Thomas Gleixner , Stephen Boyd , Chandan Babu R , "Darrick J. Wong" , "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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,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 agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Fri, 20 Oct 2023 13:07:04 -0700 (PDT) On Fri, 20 Oct 2023 at 05:12, Jeff Layton wrote:. > > I'd _really_ like to see a proper change counter added before it's > merged, or at least space in the on-disk inode reserved for one until we > can get it plumbed in. Hmm. Can we not perhaps just do an in-memory change counter, and try to initialize it to a random value when instantiating an inode? Do we even *require* on-disk format changes? So on reboot, the inode would count as "changed" as far any remote user is concerned. It would flush client caches, but isn't that what you'd want anyway? I'd hate to waste lots of memory, but maybe people would be ok with just a 32-bit random value. And if not... But I actually came into this whole discussion purely through the inode timestamp side, so I may *entirely* miss what the change counter requirements for NFSd actually are. If it needs to be stable across reboots, my idea is clearly complete garbage. You can now all jump on me and point out my severe intellectual limitations. Please use small words when you do ;) Linus