summaryrefslogtreecommitdiffstats
path: root/fs/ntfs3/namei.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@kernel.org>2023-07-05 15:01:26 -0400
committerChristian Brauner <brauner@kernel.org>2023-07-24 10:30:02 +0200
commit3d65c46fbf6ad0e097f8ec0bc6c7674cce119fa2 (patch)
treea4c160085e4b45a59642851aa74cd593dcec1e03 /fs/ntfs3/namei.c
parent03870d277fea0efb33d5de792194589130c6a3cb (diff)
downloadlinux-stable-3d65c46fbf6ad0e097f8ec0bc6c7674cce119fa2.tar.gz
linux-stable-3d65c46fbf6ad0e097f8ec0bc6c7674cce119fa2.tar.bz2
linux-stable-3d65c46fbf6ad0e097f8ec0bc6c7674cce119fa2.zip
ntfs3: 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-59-jlayton@kernel.org> Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/ntfs3/namei.c')
-rw-r--r--fs/ntfs3/namei.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ntfs3/namei.c b/fs/ntfs3/namei.c
index bfd986699f9e..ad430d50bd79 100644
--- a/fs/ntfs3/namei.c
+++ b/fs/ntfs3/namei.c
@@ -156,8 +156,8 @@ static int ntfs_link(struct dentry *ode, struct inode *dir, struct dentry *de)
err = ntfs_link_inode(inode, de);
if (!err) {
- dir->i_ctime = dir->i_mtime = inode->i_ctime =
- current_time(dir);
+ dir->i_mtime = inode_set_ctime_to_ts(inode,
+ inode_set_ctime_current(dir));
mark_inode_dirty(inode);
mark_inode_dirty(dir);
d_instantiate(de, inode);