mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-16 12:14:06 +00:00
befs: 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. Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Jeff Layton <jlayton@kernel.org> Message-Id: <20230705190309.579783-25-jlayton@kernel.org> Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
parent
36aa5eae75
commit
0a83594824
1 changed files with 1 additions and 1 deletions
|
@ -363,7 +363,7 @@ static struct inode *befs_iget(struct super_block *sb, unsigned long ino)
|
|||
inode->i_mtime.tv_sec =
|
||||
fs64_to_cpu(sb, raw_inode->last_modified_time) >> 16;
|
||||
inode->i_mtime.tv_nsec = 0; /* lower 16 bits are not a time */
|
||||
inode->i_ctime = inode->i_mtime;
|
||||
inode_set_ctime_to_ts(inode, inode->i_mtime);
|
||||
inode->i_atime = inode->i_mtime;
|
||||
|
||||
befs_ino->i_inode_num = fsrun_to_cpu(sb, raw_inode->inode_num);
|
||||
|
|
Loading…
Add table
Reference in a new issue