Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp3605811rwn; Sat, 10 Sep 2022 16:02:33 -0700 (PDT) X-Google-Smtp-Source: AA6agR47AlC2I+ZRktWVe/6CypmiIPYlGACM+f6TO7PrYRl0xzEzSBGEazzJP6AWjCN4+vbuBIyi X-Received: by 2002:a17:907:a068:b0:773:e2bd:554d with SMTP id ia8-20020a170907a06800b00773e2bd554dmr10414058ejc.743.1662850953285; Sat, 10 Sep 2022 16:02:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662850953; cv=none; d=google.com; s=arc-20160816; b=v3P+m+eUo+aqqMee94bPqhpRe4IFibGOkBpY2mTUGzbuHGnOM+emBcE1feGtbyg+SX n7qMUdr/yt7jAQsaECi7GpFiUJvDZu7RmcZrItcnSDvjw5qwBHyLturS2RU7kA6cMR6+ BacZhnOWQ0+3VWRSNsdSYNjahVAUpxSUzdRdcCe/T5VR2xbqyf35GrVUadV6uHPok3ov riIWEbZbnX5QrK0Nf1YWj6720jQzLxobNnPdWI3FThrbbchSesrdjhVVFlHAXqDPiZiB Kgl0StxCsJBcntFhyWfT0HqeSf0eb5asZaCB/Sj7TtzIygUJeK1q/4KG5t6SxOR5iaOf cjGw== 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=SEZa31fS3EA9aFsPGWU6D91+fQNEkWOjOiZMWEVbOm8=; b=mGoZEN2i4OwwjAj8fc3jDiN/1VMwYaNzMp7JgvIEuEIYZBlWBIi3s1DeHQJIB/wmv4 uBbSPZ8Eu94hb1/ESTwoXvYYBRT8vqzuXtrssxOQOOuAXHvxJZzEEz17/3Ag70sjEy2n ONlWohkybuVbi1sq6rcvZ0ZBRAEkJ/J9hpFzamIoBzUPF5rCtBW74AlA9CJppD1ZXgsG RYIxWLTx598L/ztRwAZgU5ZESZv1JRfptsQgIUaR8M2WZ0GxQUmheS7S34cMXpaqiQsy zhlGOk+SGvbmbk9Jyf/t2AuzP9+C8R0cw5ii7/EajgxYQu2dBMouiR68i8OhxQinhb9L C7IQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=D2nGQ+Km; dkim=neutral (no key) header.i=@suse.de header.b="/7aLYuKD"; 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 sh9-20020a1709076e8900b00772c9838c45si3790079ejc.701.2022.09.10.16.02.04; Sat, 10 Sep 2022 16:02:33 -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=D2nGQ+Km; dkim=neutral (no key) header.i=@suse.de header.b="/7aLYuKD"; 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 S229766AbiIJXA0 (ORCPT + 99 others); Sat, 10 Sep 2022 19:00:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229565AbiIJXAY (ORCPT ); Sat, 10 Sep 2022 19:00:24 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1760727B36; Sat, 10 Sep 2022 16:00:24 -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-out2.suse.de (Postfix) with ESMTPS id C14851F385; Sat, 10 Sep 2022 23:00:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1662850822; 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=SEZa31fS3EA9aFsPGWU6D91+fQNEkWOjOiZMWEVbOm8=; b=D2nGQ+KmyoT+3CB9WFqrOvSdTCTC7vLDI6lvwiyiHKx1KRh/hVQcC1Kyz0pAWNWFH6DVsU oYPaZqJklzpxIdT0Kd5P9Oyjb0H9pGpXDZ3uFtk4/vxZx1JUV4VqaWxROrNytO57a7bi6i wlncE/a53qalNImF/4VgojhyTUI9QgM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1662850822; 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=SEZa31fS3EA9aFsPGWU6D91+fQNEkWOjOiZMWEVbOm8=; b=/7aLYuKDFocxpJ7Wq/t+4PhxPCMT/enTqz6zz/P8FeBaUvb/PmzRyHfFPSyewk9Cg5nGxr LoooUzXWIOKYwxCQ== 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 48FBE133B7; Sat, 10 Sep 2022 23:00:15 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id iys6AP8WHWNKRgAAMHmgww (envelope-from ); Sat, 10 Sep 2022 23:00:15 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 From: "NeilBrown" To: "Al Viro" Cc: "Jeff Layton" , "Trond Myklebust" , "bfields@fieldses.org" , "zohar@linux.ibm.com" , "djwong@kernel.org" , "xiubli@redhat.com" , "brauner@kernel.org" , "linux-api@vger.kernel.org" , "linux-xfs@vger.kernel.org" , "david@fromorbit.com" , "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" , "jack@suse.cz" , "linux-ext4@vger.kernel.org" , "linux-btrfs@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" , "lczerner@redhat.com" , "adilger.kernel@dilger.ca" , "ceph-devel@vger.kernel.org" Subject: Re: [man-pages RFC PATCH v4] statx, inode: document the new STATX_INO_VERSION field In-reply-to: References: <20220907111606.18831-1-jlayton@kernel.org>, <166255065346.30452.6121947305075322036@noble.neil.brown.name>, <79aaf122743a295ddab9525d9847ac767a3942aa.camel@kernel.org>, <20220907125211.GB17729@fieldses.org>, <771650a814ab1ff4dc5473d679936b747d9b6cf5.camel@kernel.org>, <8a71986b4fb61cd9b4adc8b4250118cbb19eec58.camel@hammerspace.com>, , <166259764365.30452.5588074352157110414@noble.neil.brown.name>, Date: Sun, 11 Sep 2022 09:00:10 +1000 Message-id: <166285081066.30452.6346804601094610224@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 Sun, 11 Sep 2022, Al Viro wrote: > On Thu, Sep 08, 2022 at 10:40:43AM +1000, NeilBrown wrote: > > > We do hold i_rwsem today. I'm working on changing that. Preserving > > atomic directory changeinfo will be a challenge. The only mechanism I > > can think if is to pass a "u64*" to all the directory modification ops, > > and they fill in the version number at the point where it is incremented > > (inode_maybe_inc_iversion_return()). The (nfsd) caller assumes that > > "before" was one less than "after". If you don't want to internally > > require single increments, then you would need to pass a 'u64 [2]' to > > get two iversions back. > > Are you serious? What kind of boilerplate would that inflict on the > filesystems not, er, opting in for that... scalability improvement > experiment? > Why would you think there would be any boiler plate? Only filesystems that opt in would need to do anything, and only when the caller asked (by passing a non-NULL array pointer). NeilBrown