summaryrefslogtreecommitdiffstats
path: root/fs/efivarfs/inode.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@kernel.org>2023-07-05 21:01:02 +0200
committerChristian Brauner <brauner@kernel.org>2023-07-13 10:28:06 +0200
commit2fa9a97512dae779003145b693e6726ed92240e3 (patch)
tree43628a841d34407e1b8d4e573da1bc7a526981d2 /fs/efivarfs/inode.c
parentecryptfs: convert to ctime accessor functions (diff)
downloadlinux-2fa9a97512dae779003145b693e6726ed92240e3.tar.xz
linux-2fa9a97512dae779003145b693e6726ed92240e3.zip
efivarfs: convert to ctime accessor functions
In later patches, we're going to change how the inode's ctime field is used. Switch to using accessor functions instead of raw accesses of inode->i_ctime. Signed-off-by: Jeff Layton <jlayton@kernel.org> Reviewed-by: Jan Kara <jack@suse.cz> Message-Id: <20230705190309.579783-35-jlayton@kernel.org> Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/efivarfs/inode.c')
-rw-r--r--fs/efivarfs/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/efivarfs/inode.c b/fs/efivarfs/inode.c
index b973a2c03dde..db9231f0e77b 100644
--- a/fs/efivarfs/inode.c
+++ b/fs/efivarfs/inode.c
@@ -25,7 +25,7 @@ struct inode *efivarfs_get_inode(struct super_block *sb,
if (inode) {
inode->i_ino = get_next_ino();
inode->i_mode = mode;
- inode->i_atime = inode->i_mtime = inode->i_ctime = current_time(inode);
+ inode->i_atime = inode->i_mtime = inode_set_ctime_current(inode);
inode->i_flags = is_removable ? 0 : S_IMMUTABLE;
switch (mode & S_IFMT) {
case S_IFREG: