fs: new accessor methods for atime and mtime
authorJeff Layton <jlayton@kernel.org>
Wed, 4 Oct 2023 18:52:37 +0000 (14:52 -0400)
committerChristian Brauner <brauner@kernel.org>
Wed, 18 Oct 2023 11:26:14 +0000 (13:26 +0200)
commit077c212f0344ae4198b2b51af128a94b614ccdf4
tree3198ee515f0457d13f6fc1b1c10d293bcf51df83
parent94f6f0550c625fab1f373bb86a6669b45e9748b3
fs: new accessor methods for atime and mtime

Recently, we converted the ctime accesses in the kernel to use new
accessor functions. Linus recently pointed out though that if we add
accessors for the atime and mtime, then that would allow us to
seamlessly change how these timestamps are stored in the inode.

Add new accessor functions for the atime and mtime that mirror the
accessors for the ctime.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Link: https://lore.kernel.org/r/20231004185239.80830-1-jlayton@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/libfs.c
include/linux/fs.h