Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp3489048rwn; Sat, 10 Sep 2022 12:51:12 -0700 (PDT) X-Google-Smtp-Source: AA6agR5x1HQMHSorTEUFPI68212kRGXbcdYHH16ExRHw9hDtjdTPePHZ6x+QzR2dRj89F+8n4Pij X-Received: by 2002:a17:902:b681:b0:176:6471:8ee6 with SMTP id c1-20020a170902b68100b0017664718ee6mr19663306pls.8.1662839471940; Sat, 10 Sep 2022 12:51:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662839471; cv=none; d=google.com; s=arc-20160816; b=YK4nzI5UDHRlOaH3+XJsK+jql9AUIuaCVIm1U1VlsDxp04B5dsXpyj0kMLla3lUZQN bFLsMPawYx1SuZAVE3RIvZe81JU5vYJLhWcbg0aGIP2CMbK3vpUlXaiHdEY6RfV3HPpk RgXELyuIjJdZ1CNoo9iC8UIdEltQU7Qp2r3zWukYrpm6FLbiYiFRB00N2FcESKBm3GaK yx07JSRS5y32KtZHE2L0GvhsgRKvWB10LarQ7dPUXkI8RbEXgpuoJQNattF2QXgb3WMV B1x3og3I8HF24h47UP+2+dSlg4ybpE8/60idZ871YZPSuYmor3c20xw5fmCKa8DW5vBm 5UUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Gf3iMQ+MIqgx3+mJysjCBke8D/E+r5JbUH6683x5+Og=; b=m1v8oNwRDLMITJeQd4CF+o+I3VMs5A1aUQQuofBu6qFm0QR6D0ySbBJqtZVsVb8V4Q 8N8A09x3kt3psFCxRW/Yal1zUFZrbRIy9MmArWH1fBk02aSeZsMELirsjBFqr1mk2oen ulry025/tJYkaN4+FqwTQcJXrr+UxGd4FmPG8blGsHuH7c6aoZfW/ZnUjsS/ExUyJT5d h7/9UGeTT82jHWkExkMlJPtgZJrEbY5IWgcoJ8AXqcE8PrqIwVvf9VlPOA0RklnysAg5 J8ydhXgMsrzUvsWG22Nsfd5c/xO6SFWgHcic+Pbv/U/aLxHBqpEuP/mw5Xou6yJbw5p3 0wCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=j6Iq4VK9; 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=zeniv.linux.org.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x5-20020aa79565000000b00540a2ff5351si3097923pfq.304.2022.09.10.12.50.52; Sat, 10 Sep 2022 12:51: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=@linux.org.uk header.s=zeniv-20220401 header.b=j6Iq4VK9; 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=zeniv.linux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229589AbiIJTsY (ORCPT + 99 others); Sat, 10 Sep 2022 15:48:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229904AbiIJTsH (ORCPT ); Sat, 10 Sep 2022 15:48:07 -0400 Received: from zeniv.linux.org.uk (zeniv.linux.org.uk [IPv6:2a03:a000:7:0:5054:ff:fe1c:15ff]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B538627B3D; Sat, 10 Sep 2022 12:47:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linux.org.uk; s=zeniv-20220401; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Gf3iMQ+MIqgx3+mJysjCBke8D/E+r5JbUH6683x5+Og=; b=j6Iq4VK9au7hbkSuQKBGdDG9GP mwAGx/98LQc7paRsL14lJtePAQ6KABmyGEiCoqpgJSj2UbqQxSTMRrQ5/Taiug3UjN4Oc/5CfoX58 sN7/z/u2sbh1TbDVON/fsTWzC0NSpnpSWPxv18dHXrUjI0Z0zc+9RuIkgErQjwhFBHEHxF7LpN2Zd GYbt9za+SxMF6DJXFWMYVDkY4hXexaztbWaQuLMKeJmDQZlnthkZ0Pm4O1zb2IoZbzipYbmpee0MF MgZ+XhfrOFTa+OgKZMEtnZ0iNfbAxXLFUg1vjLVO1eP2OSYy/kjJEVwjO0UsIHYbKGHhei/dZagQB M9E8wObQ==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.95 #2 (Red Hat Linux)) id 1oX6RN-00EPHP-Rk; Sat, 10 Sep 2022 19:46:57 +0000 Date: Sat, 10 Sep 2022 20:46:57 +0100 From: Al Viro To: NeilBrown 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 Message-ID: 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <166259764365.30452.5588074352157110414@noble.neil.brown.name> Sender: Al Viro X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE,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, 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?