diff options
author | Jeff Layton <jlayton@kernel.org> | 2023-10-04 14:52:46 -0400 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2023-10-18 14:08:26 +0200 |
commit | 200d942170a8e7b94d7cdc871f9a067917bc3f4a (patch) | |
tree | 73a1e9ffd66b1d15bff37493eeef92a5b4ff81a7 /fs/proc/proc_sysctl.c | |
parent | 4ddbd0f1fe8c9edd2be5465d681834e9ab2f4dd9 (diff) | |
download | lwn-200d942170a8e7b94d7cdc871f9a067917bc3f4a.tar.gz lwn-200d942170a8e7b94d7cdc871f9a067917bc3f4a.zip |
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/proc_sysctl.c')
-rw-r--r-- | fs/proc/proc_sysctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c index c88854df0b62..bc9a2db89cfa 100644 --- a/fs/proc/proc_sysctl.c +++ b/fs/proc/proc_sysctl.c @@ -465,7 +465,7 @@ static struct inode *proc_sys_make_inode(struct super_block *sb, head->count++; spin_unlock(&sysctl_lock); - inode->i_mtime = inode->i_atime = inode_set_ctime_current(inode); + simple_inode_init_ts(inode); inode->i_mode = table->mode; if (!S_ISDIR(table->mode)) { inode->i_mode |= S_IFREG; |