mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-23 20:24:12 +08:00
efs: convert to ctime accessor functions
In later patches, we're going to change how the inode's ctime field is used. Switch to using accessor functions instead of raw accesses of inode->i_ctime. Signed-off-by: Jeff Layton <jlayton@kernel.org> Reviewed-by: Jan Kara <jack@suse.cz> Message-Id: <20230705190309.579783-36-jlayton@kernel.org> Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
parent
2fa9a97512
commit
a68d1f5127
@ -105,8 +105,8 @@ struct inode *efs_iget(struct super_block *super, unsigned long ino)
|
||||
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->i_ctime.tv_sec = be32_to_cpu(efs_inode->di_ctime);
|
||||
inode->i_atime.tv_nsec = inode->i_mtime.tv_nsec = inode->i_ctime.tv_nsec = 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) {
|
||||
|
Loading…
Reference in New Issue
Block a user