summaryrefslogtreecommitdiff
path: root/fs/romfs/super.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@kernel.org>2023-10-04 21:52:52 +0300
committerChristian Brauner <brauner@kernel.org>2023-10-18 15:08:27 +0300
commitf26c93d38ca3fcb858ecfc1d322e7620e4b05022 (patch)
tree7e35119f7ae597549bfd298c3735cf566e63d5ff /fs/romfs/super.c
parent5e8b820be8203f24773d653e5379448408e82121 (diff)
downloadlinux-f26c93d38ca3fcb858ecfc1d322e7620e4b05022.tar.xz
romfs: 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-65-jlayton@kernel.org Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/romfs/super.c')
-rw-r--r--fs/romfs/super.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/romfs/super.c b/fs/romfs/super.c
index 5c35f6c76037..c09d81b548e4 100644
--- a/fs/romfs/super.c
+++ b/fs/romfs/super.c
@@ -322,7 +322,8 @@ static struct inode *romfs_iget(struct super_block *sb, unsigned long pos)
set_nlink(i, 1); /* Hard to decide.. */
i->i_size = be32_to_cpu(ri.size);
- i->i_mtime = i->i_atime = inode_set_ctime(i, 0, 0);
+ inode_set_mtime_to_ts(i,
+ inode_set_atime_to_ts(i, inode_set_ctime(i, 0, 0)));
/* set up mode and ops */
mode = romfs_modemap[nextfh & ROMFH_TYPE];