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

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

authored by

Jeff Layton and committed by
Christian Brauner
9304a99e 4c46a0a1

+2 -2
+2 -2
arch/s390/hypfs/inode.c
··· 53 53 struct inode *inode = d_inode(sb_info->update_file); 54 54 55 55 sb_info->last_update = ktime_get_seconds(); 56 - inode->i_atime = inode->i_mtime = inode_set_ctime_current(inode); 56 + simple_inode_init_ts(inode); 57 57 } 58 58 59 59 /* directory tree removal functions */ ··· 101 101 ret->i_mode = mode; 102 102 ret->i_uid = hypfs_info->uid; 103 103 ret->i_gid = hypfs_info->gid; 104 - ret->i_atime = ret->i_mtime = inode_set_ctime_current(ret); 104 + simple_inode_init_ts(ret); 105 105 if (S_ISDIR(mode)) 106 106 set_nlink(ret, 2); 107 107 }