Skip to content

Commit 594370f

Browse files
jtlaytonbrauner
authored andcommitted
erofs: convert to new timestamp accessors
Convert to using the new inode timestamp accessor functions. Signed-off-by: Jeff Layton <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Christian Brauner <[email protected]>
1 parent 89ddde8 commit 594370f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fs/erofs/inode.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,8 @@ static void *erofs_read_inode(struct erofs_buf *buf,
175175
vi->chunkbits = sb->s_blocksize_bits +
176176
(vi->chunkformat & EROFS_CHUNK_FORMAT_BLKBITS_MASK);
177177
}
178-
inode->i_mtime = inode->i_atime = inode_get_ctime(inode);
178+
inode_set_mtime_to_ts(inode,
179+
inode_set_atime_to_ts(inode, inode_get_ctime(inode)));
179180

180181
inode->i_flags &= ~S_DAX;
181182
if (test_opt(&sbi->opt, DAX_ALWAYS) && S_ISREG(inode->i_mode) &&

0 commit comments

Comments
 (0)