projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89ddde8
)
erofs: convert to new timestamp accessors
author
Jeff Layton
<jlayton@kernel.org>
Wed, 4 Oct 2023 18:52:17 +0000
(14:52 -0400)
committer
Christian Brauner
<brauner@kernel.org>
Wed, 18 Oct 2023 11:26:21 +0000
(13:26 +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-30-jlayton@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/erofs/inode.c
patch
|
blob
|
history
diff --git
a/fs/erofs/inode.c
b/fs/erofs/inode.c
index edc8ec7581b8f057ac70b66c1f04edfca1792c66..b8ad05b4509d58f1e64ab2a1994c405e0aa80b04 100644
(file)
--- a/
fs/erofs/inode.c
+++ b/
fs/erofs/inode.c
@@
-175,7
+175,8
@@
static void *erofs_read_inode(struct erofs_buf *buf,
vi->chunkbits = sb->s_blocksize_bits +
(vi->chunkformat & EROFS_CHUNK_FORMAT_BLKBITS_MASK);
}
- inode->i_mtime = inode->i_atime = inode_get_ctime(inode);
+ inode_set_mtime_to_ts(inode,
+ inode_set_atime_to_ts(inode, inode_get_ctime(inode)));
inode->i_flags &= ~S_DAX;
if (test_opt(&sbi->opt, DAX_ALWAYS) && S_ISREG(inode->i_mode) &&