diff options
author | Jeff Layton <jlayton@kernel.org> | 2023-07-05 15:00:47 -0400 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2023-07-13 10:28:03 +0200 |
commit | 9689414767f2f7eda188957f4704ca9400fc4d5c (patch) | |
tree | 9b81dc8e66d8361ac488b3a94e32ef3c3a98465e /fs/adfs | |
parent | 4f87180060d88da888070029c5ed2fd0873eeef9 (diff) | |
download | lwn-9689414767f2f7eda188957f4704ca9400fc4d5c.tar.gz lwn-9689414767f2f7eda188957f4704ca9400fc4d5c.zip |
adfs: 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-20-jlayton@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/adfs')
-rw-r--r-- | fs/adfs/inode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/adfs/inode.c b/fs/adfs/inode.c index c3ac613d0975..20963002578a 100644 --- a/fs/adfs/inode.c +++ b/fs/adfs/inode.c @@ -270,7 +270,7 @@ adfs_iget(struct super_block *sb, struct object_info *obj) inode->i_mode = adfs_atts2mode(sb, inode); adfs_adfs2unix_time(&inode->i_mtime, inode); inode->i_atime = inode->i_mtime; - inode->i_ctime = inode->i_mtime; + inode_set_ctime_to_ts(inode, inode->i_mtime); if (S_ISDIR(inode->i_mode)) { inode->i_op = &adfs_dir_inode_operations; @@ -331,7 +331,7 @@ adfs_notify_change(struct mnt_idmap *idmap, struct dentry *dentry, if (ia_valid & ATTR_ATIME) inode->i_atime = attr->ia_atime; if (ia_valid & ATTR_CTIME) - inode->i_ctime = attr->ia_ctime; + inode_set_ctime_to_ts(inode, attr->ia_ctime); if (ia_valid & ATTR_MODE) { ADFS_I(inode)->attr = adfs_mode2atts(sb, inode, attr->ia_mode); inode->i_mode = adfs_atts2mode(sb, inode); |