]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/shmem: tmpfs fallocate use file_modified()
authorHugh Dickins <hughd@google.com>
Thu, 11 Aug 2022 04:55:36 +0000 (21:55 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 17 Aug 2022 20:56:08 +0000 (13:56 -0700)
commita7475b10e606cb2b40f11dc6bcfe5d49bf7b3130
treecdfd8a31b69912576da22c9547166d92b1331d6d
parent0637baa7be6f42bb400868fa83f9fc34b6d9d216
mm/shmem: tmpfs fallocate use file_modified()

5.18 fixed the btrfs and ext4 fallocates to use file_modified(), as xfs
was already doing, to drop privileges: and fstests generic/{683,684,688}
expect this.  There's no need to argue over keep-size allocation (which
could just update ctime): fix shmem_fallocate() to behave the same way.

Link: https://lkml.kernel.org/r/39c5e62-4896-7795-c0a0-f79c50d4909@google.com
Signed-off-by: Hugh Dickins <hughd@google.com>
Acked-by: Christian Brauner (Microsoft) <brauner@kernel.org>
Cc: "Darrick J. Wong" <djwong@kernel.org>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Radoslaw Burny <rburny@google.com>
Cc: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/shmem.c