projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e8b820
)
romfs: convert to new timestamp accessors
author
Jeff Layton
<jlayton@kernel.org>
Wed, 4 Oct 2023 18:52:52 +0000
(14:52 -0400)
committer
Christian Brauner
<brauner@kernel.org>
Wed, 18 Oct 2023 12:08:27 +0000
(14:08 +0200)
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>
fs/romfs/super.c
patch
|
blob
|
history
diff --git
a/fs/romfs/super.c
b/fs/romfs/super.c
index 5c35f6c760377ea49f1df39066c71bf07dd99c14..c09d81b548e4157cd9edef8023a627a31e07e072 100644
(file)
--- 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];