Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3648858ybl; Sun, 12 Jan 2020 23:37:14 -0800 (PST) X-Google-Smtp-Source: APXvYqwzJfVS7jT5skolHjWFVR+RYWok8NYhQ4KGRnOuY1U4xMq+IpN94nJpyey69/tbiaJASRCP X-Received: by 2002:aca:be56:: with SMTP id o83mr11926151oif.25.1578901034335; Sun, 12 Jan 2020 23:37:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578901034; cv=none; d=google.com; s=arc-20160816; b=C3LvxXsvTIQ8/TUlWw7grrDA4jjhqCU3ias0cztwCScZ1lbIQeOAS9mP2YI881s/Pp VQEd58QwjT0jiZ36uucqwiT5L1wbdCLtiq+q/ODrIY14tm23HUZsmxokETwx4fBV8Cz6 Q/rhkFEIYcVnMA4/oORBOm+gM9j0u7RZRIRZ2RyLRg4EkzZS0n2yp3bXcZ+QKO6ww2pb CbYKBLYLNtDKhC8h/IHwlu1OtEeRNHub1mqkkEPXMFWOwX2XbksGBaKE/lu7VD09HsNK /Sk2jl2Ks10dC0tS54xtLHWLdkKNHAYep1M6SM0DDobdvJ22EHN+UNcwzQL3Lqq/S5SX lRfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=93I5di/PNze/1qvCUt2yxFTlOobID7JYqtcC34m52co=; b=nZfCrnU99xC5ROLYl7b9uOVHaHyelfmebAgfVXGl2UhBmTSgsJgVQkACOWDbEXidC+ LxoViXb7Wpmj3bf84BpHyPjB+kzXg6jsQXbt7auBJKfbaR5AXOh7Mxhnys8NBBSOCAEh OsqoQ0UqKdCkzrar/Goljo58d189qGlrgNtkCazLfWAj0BwFc4M+PoYCwowxQbEhHjm6 vrrjWcGGNA9JX95/+2Y4aKrWfwo7x3YdJEbZen+8uHTi3Obx471DxuANmWuHfO38loxw /7lA2jCk/TXmHt/ue+mwApGLKCzP1t6gWFGVtXECiTAM5lYgXS1aufK8Dl+LhCPOrXhT ZzaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="jMm/7Vjo"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w4si5710072otq.144.2020.01.12.23.37.01; Sun, 12 Jan 2020 23:37:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="jMm/7Vjo"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728778AbgAMHgJ (ORCPT + 99 others); Mon, 13 Jan 2020 02:36:09 -0500 Received: from mail-ot1-f65.google.com ([209.85.210.65]:43762 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728687AbgAMHgJ (ORCPT ); Mon, 13 Jan 2020 02:36:09 -0500 Received: by mail-ot1-f65.google.com with SMTP id p8so8056338oth.10 for ; Sun, 12 Jan 2020 23:36:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=93I5di/PNze/1qvCUt2yxFTlOobID7JYqtcC34m52co=; b=jMm/7Vjobrlq6qWHZvKktZxxDbJuwwCthIUVBSIpp9i8hEtzWED28KibpWMiP8dzfi g5l30AgvFEQns8UgXkhyhUSXzVQDE6Yf3KUqDIo2CoVHRFIg8+vcATXg15e3/wHJyyn7 bavQdUF++anUfLeIB6DyWsPoGIn9IvcRqeK/Jl5mYeS7NNEjpw5XklLB49fWJ95KJlSk SjGUoJSqaYBU97H/h2zkr0IldOZsJoYdfOwVZ+Ql6TD+8WUsS00KLtXD2L954IVc/42N 8Sj4EvXMcVz20s5rXY6uI09LsbCUjJTcaEVqmgolXj6BiMHv0xBJT8Cd0uJTL5RtKUWA 6O6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=93I5di/PNze/1qvCUt2yxFTlOobID7JYqtcC34m52co=; b=mwlKyTpyo61weLe4zSHKSmzRjmnp9AnharfCEwisHTHfMEC1vKcSxumYUuzRpkDjbQ fIskAflgw6wEFjsUcu/PRIiIMFQOjDQVmHiCVXdmmyz1P+V3rwcICVh9jlAECjWqSGfk sauMoeZYsDzpqeOnV1XxpGKgNA9gc5AYj3Fj8xjOKQkrZm6v3Px9SGifSOdrjojcmzzv rcj50eEGivwoZEynahAV1qWsdJxYRIrRxwE62OVPJlfPSq0NUc3vj+kRnhvQNF48x+mR YIc41sxJ2RKYVuwgujE5WesOZalurz6yzr9bCO0sXI8oe84HYyXoYO5hILxuFn5JCLRl abtA== X-Gm-Message-State: APjAAAV/JKApv8biU0sHdPFxS7mb/ssClSIS0NKLsr3DrYCraA1bbEGp BibNma3hr1PTVK4/wYPj/XsBZg== X-Received: by 2002:a9d:811:: with SMTP id 17mr12471823oty.369.1578900968202; Sun, 12 Jan 2020 23:36:08 -0800 (PST) Received: from eggly.attlocal.net (172-10-233-147.lightspeed.sntcca.sbcglobal.net. [172.10.233.147]) by smtp.gmail.com with ESMTPSA id v200sm3268016oie.35.2020.01.12.23.36.06 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 12 Jan 2020 23:36:07 -0800 (PST) Date: Sun, 12 Jan 2020 23:36:05 -0800 (PST) From: Hugh Dickins X-X-Sender: hugh@eggly.anvils To: Chris Down cc: Hugh Dickins , Dave Chinner , Chris Mason , Amir Goldstein , Linux MM , Andrew Morton , Al Viro , Matthew Wilcox , Jeff Layton , Johannes Weiner , Tejun Heo , Mikael Magnusson , linux-fsdevel , linux-kernel , Kernel Team Subject: Re: [PATCH v5 2/2] tmpfs: Support 64-bit inums per-sb In-Reply-To: <20200110164503.GA1697@chrisdown.name> Message-ID: References: <20200107001039.GM23195@dread.disaster.area> <20200107001643.GA485121@chrisdown.name> <20200107003944.GN23195@dread.disaster.area> <20200107210715.GQ23195@dread.disaster.area> <4E9DF932-C46C-4331-B88D-6928D63B8267@fb.com> <20200110164503.GA1697@chrisdown.name> User-Agent: Alpine 2.11 (LSU 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 10 Jan 2020, Chris Down wrote: > Hugh Dickins writes: > > Dave, Amir, Chris, many thanks for the info you've filled in - > > and absolutely no need to run any scan on your fleet for this, > > I think we can be confident that even if fb had some 15-year-old tool > > in use on its fleet of 2GB-file filesystems, it would not be the one > > to insist on a kernel revert of 64-bit tmpfs inos. > > > > The picture looks clear now: while ChrisD does need to hold on to his > > config option and inode32/inode64 mount option patch, it is much better > > left out of the kernel until (very unlikely) proved necessary. > > Based on Mikael's comment above about Steam binaries, and the lack of > likelihood that they can be rebuilt, I'm inclined to still keep inode{64,32}, > but make legacy behaviour require explicit opt-in. That is: > > - Default it to inode64 > - Remove the Kconfig option > - Only print it as an option if tmpfs was explicitly mounted with inode32 > > The reason I suggest keeping this is that I'm mildly concerned that the kind > of users who might be impacted by this change due to 32-bit _FILE_OFFSET_BITS > -- like the not-too-uncommon case that Mikael brings up -- seem unlikely to > be the kind of people that would find it in an rc. Okay. None of us are thrilled with it, but I agree that Mikael's observation should override our developer's preference. So the "inode64" option will be accepted but redundant on mounting, but exists for use as a remount option after mounting or remounting with "inode32": allowing the admin to switch temporarily to mask off the high ino bits with "inode32" when needing to run a limited binary. Documentation and commit message to alert Andrew and Linus and distros that we are risking some breakage with this, but supplying the antidote (not breakage of any distros themselves, no doubt they're all good; but breakage of what some users might run on them). > > Other than that, the first patch could be similar to how it is now, > incorporating Hugh's improvements to the first patch to put everything under > the same stat_lock in shmem_reserve_inode. So, I persuaded Amir to the other aspects my version, but did not persuade you? Well, I can live with that (or if not, can send mods on top of yours): but please read again why I was uncomfortable with yours, to check that you still prefer it (I agree that your patch is simpler, and none of my discomfort decisive). Thanks, Hugh