summaryrefslogtreecommitdiff
path: root/fs/proc/self.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@kernel.org>2023-10-04 21:52:46 +0300
committerChristian Brauner <brauner@kernel.org>2023-10-18 15:08:26 +0300
commit200d942170a8e7b94d7cdc871f9a067917bc3f4a (patch)
tree73a1e9ffd66b1d15bff37493eeef92a5b4ff81a7 /fs/proc/self.c
parent4ddbd0f1fe8c9edd2be5465d681834e9ab2f4dd9 (diff)
downloadlinux-200d942170a8e7b94d7cdc871f9a067917bc3f4a.tar.xz
proc: 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-59-jlayton@kernel.org Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/proc/self.c')
-rw-r--r--fs/proc/self.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/self.c b/fs/proc/self.c
index ecc4da8d265e..b46fbfd22681 100644
--- a/fs/proc/self.c
+++ b/fs/proc/self.c
@@ -46,7 +46,7 @@ int proc_setup_self(struct super_block *s)
struct inode *inode = new_inode(s);
if (inode) {
inode->i_ino = self_inum;
- inode->i_mtime = inode->i_atime = inode_set_ctime_current(inode);
+ simple_inode_init_ts(inode);
inode->i_mode = S_IFLNK | S_IRWXUGO;
inode->i_uid = GLOBAL_ROOT_UID;
inode->i_gid = GLOBAL_ROOT_GID;