Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2253419pxb; Fri, 5 Feb 2021 12:52:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJwKJmHyd6PhIq7Gj4dKxmioPPkqm/5MJBuDhT1zgkCqnyNDgbSLJJGLNJGo7no83xOLpSBM X-Received: by 2002:a17:906:388b:: with SMTP id q11mr5774757ejd.421.1612558337611; Fri, 05 Feb 2021 12:52:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612558337; cv=none; d=google.com; s=arc-20160816; b=FBYhzM0UAg7QPJi5WfroaYBCKItAqmSC4LaY8adaTzWESOAvj/g4dGu1M+/uUC0wt6 g8rD8XkE8IOs+xO3ev51bo5RWOe41H/4xXX/P54YhmajwbUZskDbw8qFBgaBIn2EN//o bm98TZ9UHVIDBqM8Y4U2CK5GoTg+h1uABMiMIFeomPTHRFaNO2bPy0PUcrr56/Woad0i 6s6Z2l07hdIhKLmxZM1Aj1gh8hZ/rNRXwiFJ9iFRMCAPuC/y0KqZLFSzFO1182o8eDk9 oGeBPoeQd3uH62Wi72UPAcjQukwmYDG9dAzSVjy8KOjfFP1zVDVEjSfVTcgPgNQ9PZY2 eWLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=G0Q+2Ed0JbfwL6e5/fnmxbNYRkm/+J+78sLpdelzMK4=; b=zrTgoLUMGYiSV4P2Eb7TWqOtmOiYXnPuaq1tW8K3F+CS7JQKVp8KD9W6VyWhr6kMVn 0IkEwZdeGyMNH1Yv/IataQnZX2ap4dYufRxFObG9lFhZBThUqhX03A5whJnWTuKKBgiu Y9Y99F5eXxqG337kmS9Xb/U6/omBoQzoynG2DBGWu9DCMsuz6j+2t5/LTFlj/gC5oGGp Ff7FExzh6Y5Gh7NDcmWbbGpDus8bS8xJNWhc2RKQ0oqM6s3K3rFfp6Hv+BlqBakHJlQY xcRA1eLE4JCmpnVf9CU2b90aXY57AXBwARxoT1g5vszmmyqkpyFWy9PSEMoTQfdKZMgQ 835Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=FHz7Uf3N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 bo4si6033334edb.420.2021.02.05.12.51.50; Fri, 05 Feb 2021 12:52:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=FHz7Uf3N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233070AbhBETEI (ORCPT + 99 others); Fri, 5 Feb 2021 14:04:08 -0500 Received: from mail.kernel.org ([198.145.29.99]:40240 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230399AbhBETAN (ORCPT ); Fri, 5 Feb 2021 14:00:13 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id CD39564F95; Fri, 5 Feb 2021 20:41:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1612557718; bh=4ZWW8hUuPa5dPG125V2iEZsrPT8+OXIjRrQ4Rj9bvpA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=FHz7Uf3NdrqKvSuZsiFNBBbpgRUDEmNFQhvQUNxrBN3OVNylMmK2+610apgqB1IsO aR908QslNGt/1fDPzQrxp98ipXr7b6QqZ0vkAcUmjrEwtJ5Yhj3JrOk4OBJsDibIJf jb8MuIHp89Hqw60jV09vtiUCBQpYNBRKflgf7kV4= Date: Fri, 5 Feb 2021 12:41:57 -0800 From: Andrew Morton To: Seth Forshee Cc: Hugh Dickins , Chris Down , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] tmpfs: Don't use 64-bit inodes by defulat with 32-bit ino_t Message-Id: <20210205124157.c9d855a373362d7bf3d811a7@linux-foundation.org> In-Reply-To: <20210205202159.505612-1-seth.forshee@canonical.com> References: <20210205202159.505612-1-seth.forshee@canonical.com> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 5 Feb 2021 14:21:59 -0600 Seth Forshee wrote: > Currently there seems to be an assumption in tmpfs that 64-bit > architectures also have a 64-bit ino_t. This is not true; s390 at > least has a 32-bit ino_t. With CONFIG_TMPFS_INODE64=y tmpfs > mounts will get 64-bit inode numbers and display "inode64" in the > mount options, but passing the "inode64" mount option will fail. > This leads to the following behavior: > > # mkdir mnt > # mount -t tmpfs nodev mnt > # mount -o remount,rw mnt > mount: /home/ubuntu/mnt: mount point not mounted or bad option. > > As mount sees "inode64" in the mount options and thus passes it > in the options for the remount. > > Ideally CONFIG_TMPFS_INODE64 would depend on sizeof(ino_t) < 8, > but I don't think it's possible to test for this (potentially > CONFIG_ARCH_HAS_64BIT_INO_T or similar could be added, but I'm > not sure whether or not that is wanted). So fix this by simply > refusing to honor the CONFIG_TMPFS_INODE64 setting when > sizeof(ino_t) < 8. How about changing s390 Kconfig so that CONFIG_TMPFS_INODE64 is not enabled? > Fixes: ea3271f7196c ("tmpfs: support 64-bit inums per-sb") > Signed-off-by: Seth Forshee With a cc:stable, I assume?