mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
cramfs: 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. Acked-by: Nicolas Pitre <nico@fluxnic.net> Signed-off-by: Jeff Layton <jlayton@kernel.org> Reviewed-by: Jan Kara <jack@suse.cz> Message-Id: <20230705190309.579783-31-jlayton@kernel.org> Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
parent
8e2dc78836
commit
1e01876938
@ -133,7 +133,8 @@ static struct inode *get_cramfs_inode(struct super_block *sb,
|
||||
}
|
||||
|
||||
/* Struct copy intentional */
|
||||
inode->i_mtime = inode->i_atime = inode->i_ctime = zerotime;
|
||||
inode->i_mtime = inode->i_atime = inode_set_ctime_to_ts(inode,
|
||||
zerotime);
|
||||
/* inode->i_nlink is left 1 - arguably wrong for directories,
|
||||
but it's the best we can do without reading the directory
|
||||
contents. 1 yields the right result in GNU find, even
|
||||
|
Loading…
Reference in New Issue
Block a user