From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DCAABC433E0 for ; Sat, 6 Feb 2021 00:40:15 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 7DFD364FEA for ; Sat, 6 Feb 2021 00:40:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7DFD364FEA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chrisdown.name Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id A8A466B0006; Fri, 5 Feb 2021 19:40:14 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id A3C5F6B006C; Fri, 5 Feb 2021 19:40:14 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 950D56B006E; Fri, 5 Feb 2021 19:40:14 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0177.hostedemail.com [216.40.44.177]) by kanga.kvack.org (Postfix) with ESMTP id 80D916B0006 for ; Fri, 5 Feb 2021 19:40:14 -0500 (EST) Received: from smtpin05.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 41F08181AEF10 for ; Sat, 6 Feb 2021 00:40:14 +0000 (UTC) X-FDA: 77785986348.05.hair15_46154ba275e9 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin05.hostedemail.com (Postfix) with ESMTP id 2A9361803A124 for ; Sat, 6 Feb 2021 00:40:14 +0000 (UTC) X-HE-Tag: hair15_46154ba275e9 X-Filterd-Recvd-Size: 4939 Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) by imf03.hostedemail.com (Postfix) with ESMTP for ; Sat, 6 Feb 2021 00:40:10 +0000 (UTC) Received: by mail-ed1-f41.google.com with SMTP id q2so11147092edi.4 for ; Fri, 05 Feb 2021 16:40:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chrisdown.name; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=yd9DVs1bpM3Y2tHW1e5fufzslh0L2frolGTr8VlBm1w=; b=hIqiPlRCktnGw29D8HqZEwtk/2+4Aty9eo+z/nKC5kuxzTo1rRn9Scus+6sMnqkx+d rvpWk0D4qKSZWNKef9hjzewXR+FFFt/YsBLuv7PvF7fLGaD6FRRKta0iB7kcRs7zM9ON g+djgut8H9myomPqLUkL1x7bDq1lccMg0mP88= 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:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=yd9DVs1bpM3Y2tHW1e5fufzslh0L2frolGTr8VlBm1w=; b=Do5MmGl8oSrhDBFU7bPUZwaN4Q/pY+WJghQUKJLe98ttU+QhyvN6idSwBoSfQ2NDA2 1IkV51p0qk+rjmcNiALw6E9FOTkVQ5PSwq3Qitw3TvDq2WZceycmepe/8pnEqrEmyd5W o2HR4VKpJbelzei/j/D3MweF67SV/XgAWJUjpt/fEQOJmtGxHb2WHfacKJgph05o6MY9 +6AxxIUVcANMv6+r6iMlSQHjt7BNjU1fqP8F1s8zkOKhdqx9LU9rLZgdvJKYmhJ/+KdS 8Hv8bXlyiZYDgGt9ttd53HIvVgSkYvZvM29EvWEcTmKI7hCXbPJoChT7nYhdSDUhXnql beVA== X-Gm-Message-State: AOAM5333nCcpNiRcv1GuT05xtOU12pw1ZTlcM+cM30TsD0nZQy4cgTx0 6T3ENHN0DIrCeMecGdluYx5xJg== X-Google-Smtp-Source: ABdhPJxvlz9VFpro1BoxrP01rQJ4N6XwtZpuwm0SvnsLq5JrqOLFv6Dqdh/ANTeCcvFLAJqw6AsYbg== X-Received: by 2002:aa7:cfda:: with SMTP id r26mr6033955edy.142.1612572009688; Fri, 05 Feb 2021 16:40:09 -0800 (PST) Received: from localhost ([2620:10d:c093:400::4:4dd1]) by smtp.gmail.com with ESMTPSA id o4sm4759933edw.78.2021.02.05.16.40.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Feb 2021 16:40:09 -0800 (PST) Date: Sat, 6 Feb 2021 00:40:08 +0000 From: Chris Down To: Andrew Morton Cc: Seth Forshee , Hugh Dickins , Amir Goldstein , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , linux-mm@kvack.org, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] tmpfs: Disallow CONFIG_TMPFS_INODE64 on s390 Message-ID: References: <20210205230620.518245-1-seth.forshee@canonical.com> <20210205160551.cf57c4293ba5ccb8eb648c11@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20210205160551.cf57c4293ba5ccb8eb648c11@linux-foundation.org> User-Agent: Mutt/2.0.5 (da5e3282) (2021-01-21) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Andrew Morton writes: >Currently there is an assumption in tmpfs that 64-bit architectures also >have a 64-bit ino_t. This is not true on s390 which 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. > > >So prevent CONFIG_TMPFS_INODE64 from being selected on s390. > >Link: https://lkml.kernel.org/r/20210205230620.518245-1-seth.forshee@canonical.com >Fixes: ea3271f7196c ("tmpfs: support 64-bit inums per-sb") >Signed-off-by: Seth Forshee >Cc: Chris Down >Cc: Hugh Dickins >Cc: Amir Goldstein >Cc: Heiko Carstens >Cc: Vasily Gorbik >Cc: Christian Borntraeger >Cc: [5.9+] >Signed-off-by: Andrew Morton Either of the two ways presented looks fine to me, no real preference. Thanks! Acked-by: Chris Down >--- > > fs/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >--- a/fs/Kconfig~tmpfs-disallow-config_tmpfs_inode64-on-s390 >+++ a/fs/Kconfig >@@ -203,7 +203,7 @@ config TMPFS_XATTR > > config TMPFS_INODE64 > bool "Use 64-bit ino_t by default in tmpfs" >- depends on TMPFS && 64BIT >+ depends on TMPFS && 64BIT && !S390 > default n > help > tmpfs has historically used only inode numbers as wide as an unsigned >_ >