summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/namei.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@kernel.org>2023-10-04 14:52:21 -0400
committerChristian Brauner <brauner@kernel.org>2023-10-18 13:26:22 +0200
commit11cc6426ad407a6f64d7567124dcf5f91d6993fb (patch)
tree46119fe7118e2b7660ccbf42689468b3eaecc944 /fs/f2fs/namei.c
parentb898ab233611f7903d88c0b10f8145e1c15d3642 (diff)
downloadlinux-stable-11cc6426ad407a6f64d7567124dcf5f91d6993fb.tar.gz
linux-stable-11cc6426ad407a6f64d7567124dcf5f91d6993fb.tar.bz2
linux-stable-11cc6426ad407a6f64d7567124dcf5f91d6993fb.zip
f2fs: convert to new timestamp accessors
Convert to using the new inode timestamp accessor functions. Signed-off-by: Jeff Layton <jlayton@kernel.org> Link: https://lore.kernel.org/r/20231004185347.80880-34-jlayton@kernel.org Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/f2fs/namei.c')
-rw-r--r--fs/f2fs/namei.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c
index 193b22a2d6bf..d0053b0284d8 100644
--- a/fs/f2fs/namei.c
+++ b/fs/f2fs/namei.c
@@ -243,8 +243,8 @@ static struct inode *f2fs_new_inode(struct mnt_idmap *idmap,
inode->i_ino = ino;
inode->i_blocks = 0;
- inode->i_mtime = inode->i_atime = inode_set_ctime_current(inode);
- F2FS_I(inode)->i_crtime = inode->i_mtime;
+ simple_inode_init_ts(inode);
+ F2FS_I(inode)->i_crtime = inode_get_mtime(inode);
inode->i_generation = get_random_u32();
if (S_ISDIR(inode->i_mode))