Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp63631rwn; Wed, 14 Sep 2022 16:05:11 -0700 (PDT) X-Google-Smtp-Source: AA6agR6puYSqof3QqJY9iCG88iJrAIqcKyAyrWy/41Wec6VHE+/ISheJmkmoQKJxxeaODxi8EHvQ X-Received: by 2002:aa7:c458:0:b0:44e:9078:5712 with SMTP id n24-20020aa7c458000000b0044e90785712mr33121371edr.25.1663196711403; Wed, 14 Sep 2022 16:05:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663196711; cv=none; d=google.com; s=arc-20160816; b=G904zjb6yaNsNZlr6hVY3LvSEAfcCzNMSmGrGy7xKX/xZ0uxqVJ+QYrkQyPJSISlks XKxS9M2jWZDCod+mQ2TsFOh4PZvUH17hIWL2Ht7U1K65SVjaozcxFBrFRmxb5QddxqzN dZB9AeJlY4/YD8zzgccjqtSm2TWTuv0t3Z6yJBOjneSHe/FhGUyE0pnYFjwg3V1sdwxY /QO1qcJbPLrGqiTh93l+Q16GnwwIOOJ7wLhBaBiRyAkFMG/WDtfYY30ViWElpBp3CuZt +DEZktPFlcCu9qu3x2JbmsHhGnp4WHvpva80bWD0aDsioq+NWNqSuVfARkw64r7iKXjI ap4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:references:in-reply-to:subject :cc:to:from:mime-version:content-transfer-encoding:dkim-signature :dkim-signature; bh=Der/yD5DoRhA+UaDEdoBo0c+TBGXF1b1eQeHUJoVn24=; b=uh2W3zPi0eNmL/HS0Zylg3WxtoJCIz8Umxf8QUfFmMVAAuVaDN7gG1UXVuoEIXjkdg 824km4q7m0ei6WCIQQY9/hugGWbMcMheFmo07r+Ogzada9W1d7lwjF8dS0UiP8VMeW4P +rngOjfPjvOaBY78UxemE6f/z1ZDXAZzsMHS+Zsh7Bkp0GfclFqVP1bgW1cgIRqg1kyb 8d4m+ZDa2Uu/3cMs2C6tJh1Emng2H7aAh74oTa7aS5m6x1PrqwkXTycoLZVt1aCFc1+n VHNWYuWyXZAfj0/02c2ZuLAjRGTus66ys6sTJp+o3pHZH6+iba02j7xNGYjn3kskiV6B GE6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=vUOyhbIq; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=EUm8SOBH; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ho20-20020a1709070e9400b00775de3ca64bsi9863134ejc.92.2022.09.14.16.04.24; Wed, 14 Sep 2022 16:05:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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.de header.s=susede2_rsa header.b=vUOyhbIq; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=EUm8SOBH; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229733AbiINXDI (ORCPT + 99 others); Wed, 14 Sep 2022 19:03:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229701AbiINXDH (ORCPT ); Wed, 14 Sep 2022 19:03:07 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D7FC86C0D; Wed, 14 Sep 2022 16:03:06 -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-out1.suse.de (Postfix) with ESMTPS id 4809E2254E; Wed, 14 Sep 2022 23:03:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1663196585; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Der/yD5DoRhA+UaDEdoBo0c+TBGXF1b1eQeHUJoVn24=; b=vUOyhbIqIdhUfwjGMcVp0bFWqzSxjg18Byf0Fw6V5BWUlJXfduvZU8AsGTsDkTCUQVX1DI 3ee//m67w0d3/IaK9foaigRlwNhudHM73ukohor5+efg5TY3is7z+cqHRkrfRs95WC7ga4 cSOwko1/rNviD4ShdiPw7JiSg1R8Z00= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1663196585; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Der/yD5DoRhA+UaDEdoBo0c+TBGXF1b1eQeHUJoVn24=; b=EUm8SOBHxcTunrnYlf/7AJ8WMe7OgCxbHb23+u0pbKckxSbiSnW5PX762kvLVY0BH2prcl iOFuzg7VO/j6ODDg== 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 4E124134B3; Wed, 14 Sep 2022 23:02:57 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id ssTxAKFdImMOUgAAMHmgww (envelope-from ); Wed, 14 Sep 2022 23:02:57 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 From: "NeilBrown" To: "Jeff Layton" Cc: "Dave Chinner" , "Trond Myklebust" , "zohar@linux.ibm.com" , "djwong@kernel.org" , "xiubli@redhat.com" , "brauner@kernel.org" , "linux-xfs@vger.kernel.org" , "linux-api@vger.kernel.org" , "bfields@fieldses.org" , "fweimer@redhat.com" , "linux-kernel@vger.kernel.org" , "chuck.lever@oracle.com" , "linux-man@vger.kernel.org" , "linux-nfs@vger.kernel.org" , "tytso@mit.edu" , "viro@zeniv.linux.org.uk" , "jack@suse.cz" , "linux-ext4@vger.kernel.org" , "linux-btrfs@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" , "adilger.kernel@dilger.ca" , "lczerner@redhat.com" , "ceph-devel@vger.kernel.org" Subject: Re: [man-pages RFC PATCH v4] statx, inode: document the new STATX_INO_VERSION field In-reply-to: <166319552167.15759.17894784385240679495@noble.neil.brown.name> References: <91e31d20d66d6f47fe12c80c34b1cffdfc202b6a.camel@hammerspace.com>, <166268467103.30452.1687952324107257676@noble.neil.brown.name>, <166268566751.30452.13562507405746100242@noble.neil.brown.name>, <29a6c2e78284e7947ddedf71e5cb9436c9330910.camel@hammerspace.com>, <8d638cb3c63b0d2da8679b5288d1622fdb387f83.camel@hammerspace.com>, <166270570118.30452.16939807179630112340@noble.neil.brown.name>, <33d058be862ccc0ccaf959f2841a7e506e51fd1f.camel@kernel.org>, <166285038617.30452.11636397081493278357@noble.neil.brown.name>, <2e34a7d4e1a3474d80ee0402ed3bc0f18792443a.camel@kernel.org>, <166302538820.30452.7783524836504548113@noble.neil.brown.name>, <20220913011518.GE3600936@dread.disaster.area>, , <166311144203.20483.1888757883086697314@noble.neil.brown.name>, , <166319552167.15759.17894784385240679495@noble.neil.brown.name> Date: Thu, 15 Sep 2022 09:02:53 +1000 Message-id: <166319657348.15759.14602484394176375178@noble.neil.brown.name> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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-ext4@vger.kernel.org On Thu, 15 Sep 2022, NeilBrown wrote: >=20 > When the code was written, the inode semaphore (before mutexes) was held > over the whole thing, and timestamp resolution was 1 second. So > ordering didn't really matter. Since then locking has bee reduced and > precision increased but no-one saw any need to fix the ordering. I > think that is fine for timestamps. Actually it is much more complex than that, though the principle is still the same https://git.kernel.org/pub/scm/linux/kernel/git/history/history.git/commit/?i= d=3D636b38438001a00b25f23e38747a91cb8428af29 shows i_mtime updates being moved from *after* a call to generic_file_write() in each filesystem to *early* in the body of generic_file_write(). Probably because that was just a convenient place to put it. NeilBrown