diff options
author | Jeff Layton <jlayton@kernel.org> | 2023-10-04 20:52:16 +0200 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2023-10-18 13:26:21 +0200 |
commit | 89ddde88b7eca3fcaebc64a4135cdd0b3a1ad384 (patch) | |
tree | ff80041fc99ad38900d075029735071d4afa77a3 /fs/efs/inode.c | |
parent | efivarfs: convert to new timestamp accessors (diff) | |
download | linux-89ddde88b7eca3fcaebc64a4135cdd0b3a1ad384.tar.xz linux-89ddde88b7eca3fcaebc64a4135cdd0b3a1ad384.zip |
efs: convert to new timestamp accessors
Convert to using the new inode timestamp accessor functions.
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Link: https://lore.kernel.org/r/20231004185347.80880-29-jlayton@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/efs/inode.c')
-rw-r--r-- | fs/efs/inode.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/efs/inode.c b/fs/efs/inode.c index 3789d22ba501..7844ab24b813 100644 --- a/fs/efs/inode.c +++ b/fs/efs/inode.c @@ -103,10 +103,9 @@ struct inode *efs_iget(struct super_block *super, unsigned long ino) i_uid_write(inode, (uid_t)be16_to_cpu(efs_inode->di_uid)); i_gid_write(inode, (gid_t)be16_to_cpu(efs_inode->di_gid)); inode->i_size = be32_to_cpu(efs_inode->di_size); - inode->i_atime.tv_sec = be32_to_cpu(efs_inode->di_atime); - inode->i_mtime.tv_sec = be32_to_cpu(efs_inode->di_mtime); + inode_set_atime(inode, be32_to_cpu(efs_inode->di_atime), 0); + inode_set_mtime(inode, be32_to_cpu(efs_inode->di_mtime), 0); inode_set_ctime(inode, be32_to_cpu(efs_inode->di_ctime), 0); - inode->i_atime.tv_nsec = inode->i_mtime.tv_nsec = 0; /* this is the number of blocks in the file */ if (inode->i_size == 0) { |