Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp22012899ybl; Mon, 6 Jan 2020 16:11:55 -0800 (PST) X-Google-Smtp-Source: APXvYqwxFJxWOAHK0dwGkl6Yh2AcL6M0JWofomoO3QDZMzD1x9/gQvJWzebQnyc5eCffKAblMssG X-Received: by 2002:a05:6830:4c2:: with SMTP id s2mr122743221otd.144.1578355914938; Mon, 06 Jan 2020 16:11:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578355914; cv=none; d=google.com; s=arc-20160816; b=jHMSWNAQOa/Y4Bu1VZp/DAPAvaVDe7c8KcG4e3XpgIYOyozgAJxWJv5aGjrRZc2tsv 9pzSY44UoCvphSDjNakYBulmR0Y7oVwfZi/L4nHg8O0CdzxpacciQaO0AEhBlm3/TFcY CFxzr4FhJeIIBOmXrVdOHDinto3X0+UfCVwPJLwHbODzvkzXB3VS5AI+MSTqi1AADnAg U1KbWXAg/EohKpRzUjlEOeCV88uo8eMFnftwb5JufSKVN+Bli9uaHyt6elnGU47yfYp2 L/MPtzxDnjS1VNn1TbxYS1nkcjYgapJSwmctrDCspMXYZf+Y43XszXWZsO88tTYpBCbx b3MA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=D+8epQfyP3FK8ff+hbA01KNy1LNqDWQdYEjrJ8CDw+I=; b=xRLPXi5CXYNA9X8aucRRsmJwoOYAZCGeAjsn2zKlECS9fur2zG+rmS2D8x14ZVB6+S 2tDDw828jsKcfwLQfuDLw69RrgHrTnsSADxeqd8YDdGr68f44tIar/eBUG8HIvwm8AT1 q0CwYQEhxzWik1fuAMHnlMf68dD7ObQ03h6jWA0SJG09PFhMQuZ1dujYX8mUDAQV4Uu6 vYwFDJg9gPmfSQ9V6XIcFja/orcPar6CqOnK/Pmc3QOoseXqxoMRnsIQG8EJR6LHuJL+ zyTkayL5WC0vBEKUzw/6drpTxvGqd97Z9/3ZI3ItnsQgEVr3/PZCutDbc2JkQOZWqwT2 4Q1g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y6si29176454oih.217.2020.01.06.16.11.41; Mon, 06 Jan 2020 16:11:54 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727302AbgAGAKu (ORCPT + 99 others); Mon, 6 Jan 2020 19:10:50 -0500 Received: from mail105.syd.optusnet.com.au ([211.29.132.249]:54997 "EHLO mail105.syd.optusnet.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726858AbgAGAKu (ORCPT ); Mon, 6 Jan 2020 19:10:50 -0500 Received: from dread.disaster.area (pa49-180-68-255.pa.nsw.optusnet.com.au [49.180.68.255]) by mail105.syd.optusnet.com.au (Postfix) with ESMTPS id D944A3A2B05; Tue, 7 Jan 2020 11:10:45 +1100 (AEDT) Received: from dave by dread.disaster.area with local (Exim 4.92.3) (envelope-from ) id 1iocSG-0006iB-01; Tue, 07 Jan 2020 11:10:40 +1100 Date: Tue, 7 Jan 2020 11:10:39 +1100 From: Dave Chinner To: Chris Down Cc: linux-mm@kvack.org, Hugh Dickins , Andrew Morton , Al Viro , Matthew Wilcox , Amir Goldstein , Jeff Layton , Johannes Weiner , Tejun Heo , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@fb.com Subject: Re: [PATCH v5 2/2] tmpfs: Support 64-bit inums per-sb Message-ID: <20200107001039.GM23195@dread.disaster.area> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.3 cv=LYdCFQXi c=1 sm=1 tr=0 a=sbdTpStuSq8iNQE8viVliQ==:117 a=sbdTpStuSq8iNQE8viVliQ==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=Jdjhy38mL1oA:10 a=7-415B0cAAAA:8 a=bVpIlPjQrN2W4rbB-h8A:9 a=CjuIK1q_8ugA:10 a=biEYGPWJfzWAr4FL6Ov7:22 a=pHzHmUro8NiASowvMSCR:22 a=6VlIyEUom7LUIeUMNQJH:22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jan 05, 2020 at 12:06:05PM +0000, Chris Down wrote: > The default is still set to inode32 for backwards compatibility, but > system administrators can opt in to the new 64-bit inode numbers by > either: > > 1. Passing inode64 on the command line when mounting, or > 2. Configuring the kernel with CONFIG_TMPFS_INODE64=y > > The inode64 and inode32 names are used based on existing precedent from > XFS. Please don't copy this misfeature of XFS. The inode32/inode64 XFS options were a horrible hack made more than 20 years ago when NFSv2 was still in use and 64 bit inodes could not be used for NFSv2 exports. It was then continued to be used because 32bit NFSv3 clients were unable to handle 64 bit inodes. 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. Cheers, Dave. -- Dave Chinner david@fromorbit.com