Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp22277127ybl; Mon, 6 Jan 2020 22:55:38 -0800 (PST) X-Google-Smtp-Source: APXvYqw5sF210o6zKtDrTQ7OHQyfqbdAmKQF9eBZy5oQ8/zAWyw27WybOpTe97JiWqP+V2pjj1ho X-Received: by 2002:a9d:6d81:: with SMTP id x1mr12023114otp.9.1578380138551; Mon, 06 Jan 2020 22:55:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578380138; cv=none; d=google.com; s=arc-20160816; b=kAikV4Oo0nOQ0tMcr+rBIQba8n8CwZDZn9Px/GabgvJQMTobDL4kAZWOGFBGM6DtSj qINE1zDLR2KJzJrqoQdbDr6TTNZrG64FZdQxL6ybweIh8rM/sFgXBc52wkvCczhVY0RS OtYXbuBJVG0Kcy2eh/l9yInkvKv2YO4LA3dHNVvzyD8BnLBZSXWtDBExEcL4UqpuV0lv CtXY/YuvbIs39mgNTFA08WaDIer7wxEiQeD4O85EHjcFAwPJrDr6JNhNI8nVZoQR+ZfF HcQxlUhYLHBf3FcULwLFroPHQvhemP+NJ1zPPm7OzY/lMpZOJcIaSa9k0prXpTXD57eJ AeLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=+SCicnEjkyGwhQ2AgjvMF6X8DeQvHHm5K6F+M+EsiSo=; b=IfHAhJIjObtlWgIMsq+6X5XLiFhwleRKvLvFNEEqObc8bTjHiAj8Mk7b+SvA62GCUL us8M9my85YvzD8E/6IVo1QJJGLG+Gb/ylwjomn9X9BrpXlOcnATzjOPZFtaWGaueAKMO I10tQPMFz+qfTsYK8t7VxKVqCO1yZ8MJPuvgmWxqH5P7O52UL1AHqCmVC4L5smb6rwmS tFirQBFb6jBxKL4lQCGw7TZeMcAlr5lev/g2eNMJOvBPJ3K8BOw8VRcHbMrNqQolQZKn Gu49ru5cGDePGCn6giJv+FqLYJg0Cnp23sHUjmEk9HgD7Y98mtcmcswHG7cQPabeexz8 QLCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VauDvkWv; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x142si32155815oia.220.2020.01.06.22.55.25; Mon, 06 Jan 2020 22:55:38 -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=@gmail.com header.s=20161025 header.b=VauDvkWv; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726030AbgAGGyf (ORCPT + 99 others); Tue, 7 Jan 2020 01:54:35 -0500 Received: from mail-il1-f193.google.com ([209.85.166.193]:37315 "EHLO mail-il1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725781AbgAGGyf (ORCPT ); Tue, 7 Jan 2020 01:54:35 -0500 Received: by mail-il1-f193.google.com with SMTP id t8so44867543iln.4; Mon, 06 Jan 2020 22:54:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+SCicnEjkyGwhQ2AgjvMF6X8DeQvHHm5K6F+M+EsiSo=; b=VauDvkWvynYu3g7Fs6x0yQotweycU1WnoCLtCr61aTA7fmLaQ0tMBm6lm6lyPzBJEr pKm512nt7Bn8iunBUOhvg9mNL6dKI6YrstUHevxFGjMryXMnXtSbr8Jgm6iS7SnukDHU X1k+q7mDT2d3DVYzK4G9PketVqxnQhZwo6SuLu79XVoTHYLdRk0dWdK0IJTiPnPQsVDd bDbg7zu4/Fyl6TEO8J+AYb8uG5qccIWPQKU/w1+L4i6KKAK66Ezni4xpN0AHyGdRi/CV fUiT7h4O8D1pwRdHlHTi/vXzZ85O7uZsFLkM/M8/n/fUOUCeo9BWWObsBNrhQoaJy1ET ZzIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+SCicnEjkyGwhQ2AgjvMF6X8DeQvHHm5K6F+M+EsiSo=; b=UEQ9Wfvs25QKSW//NZPV2V8R64+UF8aTbs4WuJ/9dBB3iGwe5ZpkEjsUZYQTn2bQXC a4WZKEJRQuKfGdKgXng9fXqvK+9mHAnuGo1Yid1nOWbRit3SoKHc2QV1iE0GD7pImgbm zm4UFSg3qPG+GkUICZuTNh9xcwPP6RuW4Pw/BtfDl2jM3hRM+o/KQgoj2rL9RKmqyKMY 0bINFwVwnXTZFXvThIwkY6E4mMnwlwMBJIoa7ntqEX+LxFENqK28ZykMI38XrAFvZPx2 W7c3QOS7/cYjpNQYb7vU13YXqQbJklSFMzA1PfawWOENvTqH5Qf+djD9zO4dlNK3XLwA a+oQ== X-Gm-Message-State: APjAAAWGN81S9GX1AjI0CsaCxgWk0Sh5kjKkKJ31dOmAM5GRoPmNjr3W nsP5y4NyxqP5+huipLyRjFrA8aYjgC/CYHydpRQ= X-Received: by 2002:a92:88d0:: with SMTP id m77mr94426988ilh.9.1578380074721; Mon, 06 Jan 2020 22:54:34 -0800 (PST) MIME-Version: 1.0 References: <20200107001039.GM23195@dread.disaster.area> <20200107001643.GA485121@chrisdown.name> <20200107003944.GN23195@dread.disaster.area> In-Reply-To: <20200107003944.GN23195@dread.disaster.area> From: Amir Goldstein Date: Tue, 7 Jan 2020 08:54:23 +0200 Message-ID: Subject: Re: [PATCH v5 2/2] tmpfs: Support 64-bit inums per-sb To: Dave Chinner Cc: Chris Down , Linux MM , Hugh Dickins , Andrew Morton , Al Viro , Matthew Wilcox , Jeff Layton , Johannes Weiner , Tejun Heo , linux-fsdevel , linux-kernel , kernel-team@fb.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 7, 2020 at 2:40 AM Dave Chinner wrote: > > On Tue, Jan 07, 2020 at 12:16:43AM +0000, Chris Down wrote: > > Dave Chinner writes: > > > It took 15 years for us to be able to essentially deprecate > > > inode32 (inode64 is the default behaviour), and we were very happy > > > to get that albatross off our necks. In reality, almost everything > > > out there in the world handles 64 bit inodes correctly > > > including 32 bit machines and 32bit binaries on 64 bit machines. > > > And, IMNSHO, there no excuse these days for 32 bit binaries that > > > don't using the *64() syscall variants directly and hence support > > > 64 bit inodes correctlyi out of the box on all platforms. > > > > > > I don't think we should be repeating past mistakes by trying to > > > cater for broken 32 bit applications on 64 bit machines in this day > > > and age. > > > > I'm very glad to hear that. I strongly support moving to 64-bit inums in all > > cases if there is precedent that it's not a compatibility issue, but from > > the comments on my original[0] patch (especially that they strayed from the > > original patches' change to use ino_t directly into slab reuse), I'd been > > given the impression that it was known to be one. > > > > From my perspective I have no evidence that inode32 is needed other than the > > comment from Jeff above get_next_ino. If that turns out not to be a problem, > > I am more than happy to just wholesale migrate 64-bit inodes per-sb in > > tmpfs. > > Well, that's my comment above about 32 bit apps using non-LFS > compliant interfaces in this day and age. It's essentially a legacy > interface these days, and anyone trying to access a modern linux > filesystem (btrfs, XFS, ext4, etc) ion 64 bit systems need to handle > 64 bit inodes because they all can create >32bit inode numbers > in their default configurations. > Chris, Following Dave's comment, let's keep the config option, but make it default to Y and remove the mount option for now. If somebody shouts, mount option could be re-added later. This way at least we leave an option for workaround for an unlikely breakage. Thanks, Amir.