Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796004766; b=3Dlq/vbAUJa/ptQwFPLhOk1Zte023f7uMFMvNn5HAIfenmssgxF9oHsSawcxQbbTIT4O S64j5twasRF23XUqsge7GXeC2IfxyViRBurclKw0vllNcq3p8/v7hRND5JchbI5TvoCmM M5X+kzhuEjAUBoMlPD4tM2XI3CragenZL9MXDf4Hn+gDODyhnMkY/fOxK96T8LT8zF5P1 rLsTa24CmFKed9FbknD1Orohbh8pcWNsihNi5BvID4+t3bAXGndTRyS2KUDRQtgD3csug F+fhTwTcSJKsETyBrJOPPHfJydYfTHibZNH/M1B+Zm9/DgkM8J9TnTRVTEcvgN9/lcQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796004766; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-Id: In-Reply-To:References:X-Mailer:Mime-Version:Content-Type: Content-Transfer-Encoding; bh=uZEgUBZo5SDQA/yVwv6sSt5IrbhQXbrpEe7uFwuXrZM=; b=eGc3Pg9XfKw4JiJj4Ex5g0i25r4L9jz5Qo/o7MaZlKNJf0BGjLYOaFDt1O/RZfq6AR30 Y/zfZb1TXSt9vApWyY53GKesTg9uCtlmcOdK7kDQvOAgBMYBpaXsw3Q9HGKKxsgYrmX8q /nCNOm3yHZbyxEfwKSpDydMGsqBKt5Wr98KVQESP1DjFgIY2RFDi5G28SawAUKhzZXXvD T7E8UgTYFBjciQ8FA/diozUWHTs0viBtaEY7H6o/eP3b/qMX1Q+nlGx98NMzWdzZ1nrYv DPJuHvC7p7uaYbf7r+kE5RIJvZeNgA0wlDmHWSTfndtFA+RSl3KYPkv98G5tMb0j0Bw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linux-foundation.org header.i=@linux-foundation.org header.a=rsa-sha256 header.s=korg header.b=KdYugQBQ; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C2D03606A31C for ; Mon, 30 Nov 2026 02:12:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.a=rsa-sha256 header.s=korg header.b=KdYugQBQ Received: by smtp.kernel.org (Postfix) with ESMTPSA id ABBD31F00899; Mon, 30 Nov 2026 02:12:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=korg; t=1796004765; bh=uZEgUBZo5SDQA/yVwv6sSt5IrbhQXbrpEe7uFwuXrZM=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=KdYugQBQrNF8kQeofI7ZVWtQenEMAMNsaDxsjonEDpO2en3o1d2CVuP7v2nnb4i1Y sjTVsiy6n/u+yR9izeEZJUwaAckJjwX7wXv5SjdrJFHVWlinHk7y/+84APKWHL8j+H vxOCMscw6FrAafV/zoJXAUuY8R0fOFifmHkD7TjA= Date: Sun, 29 Nov 2026 18:12:45 -0800 From: Andrew Morton To: Yifan Feng Cc: Hugh Dickins , David Hildenbrand , Baolin Wang , Gregory Price , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] tmpfs: escape the space in the mpol mount option Message-Id: <20261129181245.b72c78f8e75252dbe582dbbe@linux-foundation.org> In-Reply-To: <20261130020905.79031-1-evanfengff@gmail.com> References: <20261128233747.60722-1-evanfengff@gmail.com> <20261128181319.fefb285a551d3e477a38237f@linux-foundation.org> <20261130020905.79031-1-evanfengff@gmail.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Sun, 29 Nov 2026 18:09:05 -0800 Yifan Feng wrote: > On Sat, 28 Nov 2026 18:13:19 -0800 Andrew Morton wrote: > > > > # mount -t tmpfs -o 'mpol=prefer (many):0-1' none /mnt > > > > what's in /proc mounts at this point? > > none /mnt tmpfs rw,relatime,inode64,mpol=prefer (many):0-1 0 0 > > That is seven fields where six are expected. findmnt and getmntent() > stop at the space, so the options they return end in "mpol=prefer". > > > and what does /proc/mounts look like after making this change? > > After the mount: > > none /mnt tmpfs rw,relatime,inode64,mpol=prefer\040(many):0-1 0 0 > > After the remount with size=128M: > > none /mnt tmpfs rw,relatime,size=131072k,inode64,mpol=prefer\040(many):0-1 0 0 > > findmnt and getmntent() decode the \040, and the options they return > end in "mpol=prefer (many):0-1". Great, thanks. > I can send a v2 with these lines in the changelog if you prefer. If you could please. I expect David will be processing this patch.