diff options
author | Jeff Layton <jlayton@kernel.org> | 2023-10-04 20:52:38 +0200 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2023-10-18 13:26:15 +0200 |
commit | 16a9496523a473866a0b794ee6d6c5b74fe67d40 (patch) | |
tree | 47f5ee09f0aec41da6a0846be98d4cf038fa57f5 /fs/stat.c | |
parent | fs: new accessor methods for atime and mtime (diff) | |
download | linux-16a9496523a473866a0b794ee6d6c5b74fe67d40.tar.xz linux-16a9496523a473866a0b794ee6d6c5b74fe67d40.zip |
fs: convert core infrastructure to new timestamp accessors
Convert the core vfs code to use the new timestamp accessor functions.
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Link: https://lore.kernel.org/r/20231004185239.80830-2-jlayton@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/stat.c')
-rw-r--r-- | fs/stat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/stat.c b/fs/stat.c index d43a5cc1bfa4..24bb0209e459 100644 --- a/fs/stat.c +++ b/fs/stat.c @@ -57,8 +57,8 @@ void generic_fillattr(struct mnt_idmap *idmap, u32 request_mask, stat->gid = vfsgid_into_kgid(vfsgid); stat->rdev = inode->i_rdev; stat->size = i_size_read(inode); - stat->atime = inode->i_atime; - stat->mtime = inode->i_mtime; + stat->atime = inode_get_atime(inode); + stat->mtime = inode_get_mtime(inode); stat->ctime = inode_get_ctime(inode); stat->blksize = i_blocksize(inode); stat->blocks = inode->i_blocks; |