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

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

authored by

Jeff Layton and committed by
Christian Brauner
079cf91e ae3d362a

+1 -1
+1 -1
fs/tracefs/inode.c
··· 152 152 struct inode *inode = new_inode(sb); 153 153 if (inode) { 154 154 inode->i_ino = get_next_ino(); 155 - inode->i_atime = inode->i_mtime = inode_set_ctime_current(inode); 155 + simple_inode_init_ts(inode); 156 156 } 157 157 return inode; 158 158 }