Message ID | 20240711-mgtime-v5-9-37bb5b465feb@kernel.org (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 36A8EC3DA4B for <linux-mm@archiver.kernel.org>; Thu, 11 Jul 2024 11:09:00 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B1B836B00A1; Thu, 11 Jul 2024 07:08:57 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id AA3076B00A2; Thu, 11 Jul 2024 07:08:57 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 940FB6B00A3; Thu, 11 Jul 2024 07:08:57 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 735EE6B00A1 for <linux-mm@kvack.org>; Thu, 11 Jul 2024 07:08:57 -0400 (EDT) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id E27E8804B6 for <linux-mm@kvack.org>; Thu, 11 Jul 2024 11:08:56 +0000 (UTC) X-FDA: 82327199472.11.B134810 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by imf08.hostedemail.com (Postfix) with ESMTP id 6B5C5160017 for <linux-mm@kvack.org>; Thu, 11 Jul 2024 11:08:54 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=kZWlnKSt; spf=pass (imf08.hostedemail.com: domain of jlayton@kernel.org designates 145.40.73.55 as permitted sender) smtp.mailfrom=jlayton@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1720696118; a=rsa-sha256; cv=none; b=vyozWUVE5jnqEOxQ0FoqAiyB4Nwlv0m1CrchyeJXPRQ/dPo1okMLYtDjJ/o/e6cQ8Qmnba 14g7iPuALp/aaSZUnHLje7V23R073aLlpfkph91RazyRXgAfLTwrR/Dmr5yW+QfPOkkkXi BaP0GjNamTnxaPMa9QpmpXt9NOTwuVE= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=kZWlnKSt; spf=pass (imf08.hostedemail.com: domain of jlayton@kernel.org designates 145.40.73.55 as permitted sender) smtp.mailfrom=jlayton@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1720696118; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=WJWqiHj3XekHYx0VgwRhnJIhJTvqF8OvKgeylJHVcRE=; b=1WvLRYQxsFAMZT0BVd/ohj8ybXqv0VUpqJAiFt50p3+0Z6XgOKrb1rCypoVR16vnU+f769 pl+7wkbeTlXqJud9o+XncP10cJzPGp2EV+8eY1836Feb5202ed958QigSIQgm5v/A8k/o6 Wh9su7O+5VOKpIKUtx1rgUftLlLBqj4= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id A2086CE18A7; Thu, 11 Jul 2024 11:08:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 72C94C4AF0D; Thu, 11 Jul 2024 11:08:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1720696132; bh=OTapqLUtOhOklsMt0JtGipDN7/MAEwqOBUQ+KnQBUIw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=kZWlnKStTWj/I08Tl3NCNpksnVXMXWM9yXlhktX3p2YwFtK1kZcembFkaADm1ByML 2hqUuLfknzwwRWW8jz0tWvJZnTLio+NcpivJ7DKtiZzjradOKuHmkN/rEMucFiJoVD qrqSIY5CLhJuV+gEMUuHR4ZYrg39tcU+yG36QOb53fR2jfy+FtZv4VnGEX/i9um87T Hct1UhKTZePkdLV9+ldCeBWNs80da+df5Om6mWiOakKtFDt83ux9e+hcKRLH/jc+dO wb08v3rnt5ZOUgzIkWiy7lcUXUxtmHZ5Xyy9dCUoLkfwj8sgDCq5Us7mAzhTwXAyWR bhpic4mjWPRMQ== From: Jeff Layton <jlayton@kernel.org> Date: Thu, 11 Jul 2024 07:08:13 -0400 Subject: [PATCH v5 9/9] tmpfs: add support for multigrain timestamps MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240711-mgtime-v5-9-37bb5b465feb@kernel.org> References: <20240711-mgtime-v5-0-37bb5b465feb@kernel.org> In-Reply-To: <20240711-mgtime-v5-0-37bb5b465feb@kernel.org> To: Alexander Viro <viro@zeniv.linux.org.uk>, Christian Brauner <brauner@kernel.org>, Jan Kara <jack@suse.cz>, Steven Rostedt <rostedt@goodmis.org>, Masami Hiramatsu <mhiramat@kernel.org>, Mathieu Desnoyers <mathieu.desnoyers@efficios.com>, Chandan Babu R <chandan.babu@oracle.com>, "Darrick J. Wong" <djwong@kernel.org>, Theodore Ts'o <tytso@mit.edu>, Andreas Dilger <adilger.kernel@dilger.ca>, Chris Mason <clm@fb.com>, Josef Bacik <josef@toxicpanda.com>, David Sterba <dsterba@suse.com>, Hugh Dickins <hughd@google.com>, Andrew Morton <akpm@linux-foundation.org>, Jonathan Corbet <corbet@lwn.net> Cc: Dave Chinner <david@fromorbit.com>, Andi Kleen <ak@linux.intel.com>, Christoph Hellwig <hch@infradead.org>, Uros Bizjak <ubizjak@gmail.com>, Kent Overstreet <kent.overstreet@linux.dev>, Arnd Bergmann <arnd@arndb.de>, Randy Dunlap <rdunlap@infradead.org>, kernel-team@fb.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-xfs@vger.kernel.org, linux-ext4@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-mm@kvack.org, linux-nfs@vger.kernel.org, linux-doc@vger.kernel.org, Jeff Layton <jlayton@kernel.org> X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=775; i=jlayton@kernel.org; h=from:subject:message-id; bh=OTapqLUtOhOklsMt0JtGipDN7/MAEwqOBUQ+KnQBUIw=; b=owEBbQKS/ZANAwAIAQAOaEEZVoIVAcsmYgBmj70l7ZnQeMlGHhjvFghMhoPkLSm0RtSQvRi/6 iYpytjkGrGJAjMEAAEIAB0WIQRLwNeyRHGyoYTq9dMADmhBGVaCFQUCZo+9JQAKCRAADmhBGVaC FZNfEADRHxrrM5sremg5UaJseVwuJj4hBX4wOg9PWhSGsvDhBSLnesYgeOMU7tABwVt/Z/8KcII E7FyeB7UeKZrk8KHbfDLrkFr4s2S/TsKPL0w538UEz8RtlzRM4BSv05QfJBJoRKpw3uBgJQA2St owelXYZBb5lXQeYVY3Xjg6yE03rw7iXm7Wu6v+u5+KVwkX9L5Cybg1j5UmqyA7WAs0lIqln/R+p wRjdQjL+3DK8MeqWiReYlmE9bBRLXa6DAseu3M4zC6xlaNGriEHoTWjFGbtyVwrPBailuJjRHrY wlIbkJBkkU72wY8rV4URo52g0iKX5b26BzHIzseEAqFJP6QHZGBVS6xFGsT/V4kw6EtPicdbsYN 7FlnO1dz1NWgv+TY02YEv5Gwd1Qxi3FeOHpJxt9o+5H5ASHjBGqlsdfjbp/hykirLGwFeBwQjAr vrz+47ffKte5ROyhV/V2djA/crlVqZq8xMxybO3ewVl5FymC+c4VbtWkTS60XsbXyFieFVR6Akb lnJcrsgvNEjeJoI01ocrq89wTYm9uYLYl6Z4W/Ffcp9WVS+BDgNe2Qk0r7JXbZ/aKZ8Jjm96txk +IdIydQLrUXuYBlPjpWI3oZp1xjrFddm/vOkQfR9dOD4JKH/hotMg3sRlNQzAo7lHreH0cGxP+Y TpESK6T5rsq7iwQ== X-Developer-Key: i=jlayton@kernel.org; a=openpgp; fpr=4BC0D7B24471B2A184EAF5D3000E684119568215 X-Stat-Signature: nh55r3okigrdqz5d1dag6tq3o1uu4zxs X-Rspamd-Queue-Id: 6B5C5160017 X-Rspam-User: X-Rspamd-Server: rspam10 X-HE-Tag: 1720696134-901572 X-HE-Meta: U2FsdGVkX18teBUCPmQN04J+XbCSCMbR7ZKCt5FKYB3sgOQI/owvIVBnu8hXWaMDjsAL68t2O0X28jPgCQ5HXrtBeMxPuZ1ORCuqznjn/XzehcZ/0waSoFVw3Pwt8DBt/1UnROfO0eELRd2KM1Hr8QCo7GQLGnjxuvTKBZWJu58esJ8mmJgx7QsErB29JdFbaMH9jI4tpsUbzw5lSmshms6HqYuB5PAOKVTwAOmf+gLPj+pgJdeWwetJAHWqtl72eGYDvcbre47wTTLz5d6PIWXB1j21aWmzpC55+U/Pn58QlA95eb2LkHvepljQ8vgdhDv2nZ+NwiG9uZwafsUzUkJZR4Fglf+uFtkPrvbvuXyPdSIvdiwGhKhgdENhmk88AIaWUI2wwX7H16eVjrzOaqky+pB5QFNRa8ezloxylPjcrc/ZUvimYf7PuaNVxFX2JDX5rjrmfenMcnvhbXTYJjUtyjQ6BzCsARi/9JresTl+cb6jSq6h0jcYSa4niG3GVZlTaGBRCuLPnrlrOEoSjHN8dwSDtH9OiUsGphDNbmf19Q1BhewiFD4t5yxQHgvxRKh3hgGFAllQl8Hpb9nFiTRHLMchipA0EoutBFgOPgFbCcZxhQfixlG1ntygWEBZkavnpZ6eaJq2pjnZqSXmNNr+MKcg3rGXyKL4JQgmjA6QFnfTsmftO4LpyTkB97BEORDsadeYhHXkcWcsmQGOv0um/2Z3ByeobYRmAhB8ldYhvW0nEJ6mxIoXRNQEG3bv1xoldwRTe7Wk4XBz7RUzlMLy5QjtZ8VJ7Dh6nVi9hY8J5/qN4Hyb4GZR8zoTrMYztdyUr706IrRUqAPsluRH5LTAQ4bSWqUwFXrt3mn9O5bpHtIKsGc/Ck04GDz06pV3lnz4B8bsiSBATgS73HAcpKtSG2kT7I3jjgM8pG9LspBLqokckVDoFErr5X9ixdgPsLvs3Y5c8d7lgyR84KN UbTpaYO3 +Q2lJlcZP6U0nUz2My8B9nTHdXST7BZfPnHtVRNxG0qOT91nfNfP8BoTtsrJma4cBRk/qFUaGCcKr5scqZkDbcCwZYyHUno71X3hHMHFpq/rQJH3VeHsPk894+uhpI+QEKzN3sC7dJKvcN34A6wmkr6vvTs/Ut+Y12RtZjPox+dwQPCuk1VYWuhB5usYOpdB1ArnmZP9ZWKXuBj++rgxcyV5qvXLOM0539Da0S5ZvRHPJP3HEPsj2RN/0Bbaa+Z8BAq5Uig7WeQr7pwYm8aUlqaC37/Hj7s+pWgCv5OR5HEulYOYCY3D2ExpJn3YH71W8rUffDpGELj40u7zs08SIQNwxYOAEcXs9qYeOe5MZT9CycoM= 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: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
fs: multigrain timestamp redux
|
expand
|
diff --git a/mm/shmem.c b/mm/shmem.c index 7f2b609945a5..75a9a73a769f 100644 --- a/mm/shmem.c +++ b/mm/shmem.c @@ -4660,7 +4660,7 @@ static struct file_system_type shmem_fs_type = { .parameters = shmem_fs_parameters, #endif .kill_sb = kill_litter_super, - .fs_flags = FS_USERNS_MOUNT | FS_ALLOW_IDMAP, + .fs_flags = FS_USERNS_MOUNT | FS_ALLOW_IDMAP | FS_MGTIME, }; void __init shmem_init(void)
Enable multigrain timestamps, which should ensure that there is an apparent change to the timestamp whenever it has been written after being actively observed via getattr. tmpfs only requires the FS_MGTIME flag. Signed-off-by: Jeff Layton <jlayton@kernel.org> --- mm/shmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)