Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

erofs: 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-30-jlayton@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>

authored by

Jeff Layton and committed by
Christian Brauner
594370f7 89ddde88

+2 -1
+2 -1
fs/erofs/inode.c
··· 175 175 vi->chunkbits = sb->s_blocksize_bits + 176 176 (vi->chunkformat & EROFS_CHUNK_FORMAT_BLKBITS_MASK); 177 177 } 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))); 179 180 180 181 inode->i_flags &= ~S_DAX; 181 182 if (test_opt(&sbi->opt, DAX_ALWAYS) && S_ISREG(inode->i_mode) &&