summaryrefslogtreecommitdiffstats
path: root/fs/jffs2/file.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@kernel.org>2023-10-04 14:52:32 -0400
committerChristian Brauner <brauner@kernel.org>2023-10-18 14:08:23 +0200
commit95af66c4979b08cc8d0982168c1a56a74f5c7b48 (patch)
tree9340e7a522b43c5cdf2b0b45f60fa59b561578be /fs/jffs2/file.c
parent5a4bff92372ef86add9534180b7743b55d1fe393 (diff)
downloadlinux-stable-95af66c4979b08cc8d0982168c1a56a74f5c7b48.tar.gz
linux-stable-95af66c4979b08cc8d0982168c1a56a74f5c7b48.tar.bz2
linux-stable-95af66c4979b08cc8d0982168c1a56a74f5c7b48.zip
jffs2: 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-45-jlayton@kernel.org Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/jffs2/file.c')
-rw-r--r--fs/jffs2/file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/jffs2/file.c b/fs/jffs2/file.c
index 11c66793960e..62ea76da7fdf 100644
--- a/fs/jffs2/file.c
+++ b/fs/jffs2/file.c
@@ -317,8 +317,8 @@ static int jffs2_write_end(struct file *filp, struct address_space *mapping,
inode->i_size = pos + writtenlen;
inode->i_blocks = (inode->i_size + 511) >> 9;
- inode->i_mtime = inode_set_ctime_to_ts(inode,
- ITIME(je32_to_cpu(ri->ctime)));
+ inode_set_mtime_to_ts(inode,
+ inode_set_ctime_to_ts(inode, ITIME(je32_to_cpu(ri->ctime))));
}
}