diff options
author | Jeff Layton <jlayton@kernel.org> | 2023-10-04 21:52:21 +0300 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2023-10-18 14:26:22 +0300 |
commit | 11cc6426ad407a6f64d7567124dcf5f91d6993fb (patch) | |
tree | 46119fe7118e2b7660ccbf42689468b3eaecc944 /fs/f2fs/namei.c | |
parent | b898ab233611f7903d88c0b10f8145e1c15d3642 (diff) | |
download | linux-11cc6426ad407a6f64d7567124dcf5f91d6993fb.tar.xz |
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.c | 4 |
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)) |