Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1426245ybt; Sat, 20 Jun 2020 10:01:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyiPovI+owHOPo7mnvJRtia9WGi8g8MmUQBNy2OhbHerbkCIdGd+twY1SlP2Z8+30TSMdHB X-Received: by 2002:a17:906:5243:: with SMTP id y3mr9127994ejm.193.1592672492429; Sat, 20 Jun 2020 10:01:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592672492; cv=none; d=google.com; s=arc-20160816; b=EsbQIK6tj6zxW/DKToo851zwjc9yewzSiWambEGKQ3EmYcvzdU8pBwl6ri38mmveKk dxqVL//jOPUPnudnQcaEfsgx1YrbEsEfKETJpT6OQ1qEJphr2529532Q381p3/1D9Q7v pzuOP+aHvyXXcda7KTKJQwVdLgnj/0mNJRaSlpn52G5cKJyBti51GzLvrfDyD3GXUYAS KY/VJIPT4iEFvp3cAFni112/CuLr3CIXRfcLMx6lRkDWkrB3UjfGfBjyBMW7cqNunt61 Xxf4JfODd1rFPqB0VMlN1XREzuP5X0s98BSHJT9y0P892ugPPH1LvjLJC3NikGXvXuQi MFnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:cc:to:subject; bh=VmxuTO2WUlQaLLdOQ7G/Tsvxm8HSIIfk/BjF8805N3s=; b=WK3BgXypD+4PEwa8PHE0rbzEosXp0YqcPQMP1oKbkI+yYj63UsLImz31J1aeZj2uE8 bLP/hiMGLq/mgE4Dq1myXQrTNsWc2zCv8OmyAL7PTkqn93HzkrF0P2iKrcpXYjfABWjh /Db+/vQ0DTClTIl2bZyhQpPxslx6Wn9t2TyVym+34SZMfHwQJdj+riuYFkfu0OCaQBVa 7tZ8y4pwbK5EJ/W3VH/oc8qtROrvx/mM7tKNHldhn2q8b3TjQnzc7BJ/OwL2SdCJNYVu 39Ohbrl2BsG+LATodLnlyLtt2mhJwkt44owFec7Tw4+UXsP4nryWJQzTglgkSCp3KZGx vJxw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a1si1560713edr.457.2020.06.20.10.00.55; Sat, 20 Jun 2020 10:01:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727946AbgFTRAs (ORCPT + 99 others); Sat, 20 Jun 2020 13:00:48 -0400 Received: from sandeen.net ([63.231.237.45]:35640 "EHLO sandeen.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727866AbgFTRAs (ORCPT ); Sat, 20 Jun 2020 13:00:48 -0400 Received: from [10.0.0.4] (liberator [10.0.0.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by sandeen.net (Postfix) with ESMTPSA id CB328D5E; Sat, 20 Jun 2020 12:00:19 -0500 (CDT) Subject: Re: [PATCH] fs: i_version mntopt gets visible through /proc/mounts To: "J. Bruce Fields" , Dave Chinner Cc: Masayoshi Mizuma , "Darrick J. Wong" , Christoph Hellwig , Theodore Ts'o , Andreas Dilger , Alexander Viro , Masayoshi Mizuma , linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-xfs , jlayton@redhat.com References: <20200618013026.ewnhvf64nb62k2yx@gabell> <20200618030539.GH2005@dread.disaster.area> <20200618034535.h5ho7pd4eilpbj3f@gabell> <20200618223948.GI2005@dread.disaster.area> <20200619022005.GA25414@fieldses.org> <20200619024455.GN2005@dread.disaster.area> <20200619204033.GB1564@fieldses.org> <20200619221044.GO2005@dread.disaster.area> <20200619222843.GB2650@fieldses.org> <20200620014957.GQ2005@dread.disaster.area> <20200620015633.GA1516@fieldses.org> From: Eric Sandeen Autocrypt: addr=sandeen@sandeen.net; prefer-encrypt=mutual; keydata= mQINBE6x99QBEADMR+yNFBc1Y5avoUhzI/sdR9ANwznsNpiCtZlaO4pIWvqQJCjBzp96cpCs nQZV32nqJBYnDpBDITBqTa/EF+IrHx8gKq8TaSBLHUq2ju2gJJLfBoL7V3807PQcI18YzkF+ WL05ODFQ2cemDhx5uLghHEeOxuGj+1AI+kh/FCzMedHc6k87Yu2ZuaWF+Gh1W2ix6hikRJmQ vj5BEeAx7xKkyBhzdbNIbbjV/iGi9b26B/dNcyd5w2My2gxMtxaiP7q5b6GM2rsQklHP8FtW ZiYO7jsg/qIppR1C6Zr5jK1GQlMUIclYFeBbKggJ9mSwXJH7MIftilGQ8KDvNuV5AbkronGC sEEHj2khs7GfVv4pmUUHf1MRIvV0x3WJkpmhuZaYg8AdJlyGKgp+TQ7B+wCjNTdVqMI1vDk2 BS6Rg851ay7AypbCPx2w4d8jIkQEgNjACHVDU89PNKAjScK1aTnW+HNUqg9BliCvuX5g4z2j gJBs57loTWAGe2Ve3cMy3VoQ40Wt3yKK0Eno8jfgzgb48wyycINZgnseMRhxc2c8hd51tftK LKhPj4c7uqjnBjrgOVaVBupGUmvLiePlnW56zJZ51BR5igWnILeOJ1ZIcf7KsaHyE6B1mG+X dmYtjDhjf3NAcoBWJuj8euxMB6TcQN2MrSXy5wSKaw40evooGwARAQABtCVFcmljIFIuIFNh bmRlZW4gPHNhbmRlZW5Ac2FuZGVlbi5uZXQ+iQI7BBMBAgAlAhsDBgsJCAcDAgYVCAIJCgsE FgIDAQIeAQIXgAUCUzMzbAIZAQAKCRAgrhaS4T3e4Fr7D/wO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500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <20200620015633.GA1516@fieldses.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On 6/19/20 8:56 PM, J. Bruce Fields wrote: > On Sat, Jun 20, 2020 at 11:49:57AM +1000, Dave Chinner wrote: ... >> However, other people have different opinions on this matter (and we >> know that from the people who considered XFS v4 -> v5 going slower >> because iversion a major regression), and so we must acknowledge >> those opinions even if we don't agree with them. > > Do you have any of those reports handy? Were there numbers? I can't answer that but did a little digging. MS_I_VERSION as an option appeared here: commit 7a224228ed79d587ece2304869000aad1b8e97dd Author: Jean Noel Cordenner Date: Mon Jan 28 23:58:27 2008 -0500 vfs: Add 64 bit i_version support The i_version field of the inode is changed to be a 64-bit counter that is set on every inode creation and that is incremented every time the inode data is modified (similarly to the "ctime" time-stamp). The aim is to fulfill a NFSv4 requirement for rfc3530. This first part concerns the vfs, it converts the 32-bit i_version in the generic inode to a 64-bit, a flag is added in the super block in order to check if the feature is enabled and the i_version is incremented in the vfs. Signed-off-by: Mingming Cao Signed-off-by: Jean Noel Cordenner Signed-off-by: Kalpak Shah and ext4's Opt_i_version mount option appeared here: commit 25ec56b518257a56d2ff41a941d288e4b5ff9488 Author: Jean Noel Cordenner Date: Mon Jan 28 23:58:27 2008 -0500 ext4: Add inode version support in ext4 This patch adds 64-bit inode version support to ext4. The lower 32 bits are stored in the osd1.linux1.l_i_version field while the high 32 bits are stored in the i_version_hi field newly created in the ext4_inode. This field is incremented in case the ext4_inode is large enough. A i_version mount option has been added to enable the feature. Signed-off-by: Mingming Cao Signed-off-by: Andreas Dilger Signed-off-by: Kalpak Shah Signed-off-by: Aneesh Kumar K.V Signed-off-by: Jean Noel Cordenner so the optional enablement was there on day one, without any real explanation of why. -Eric