summaryrefslogtreecommitdiffstats
path: root/fs/minix/itree_common.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@kernel.org>2023-07-05 21:01:21 +0200
committerChristian Brauner <brauner@kernel.org>2023-07-24 10:30:01 +0200
commitf7f438589f4686758ee1de99c7723919a2b05d70 (patch)
treeeee6ae6505515599f3b1e945150077813d915dda /fs/minix/itree_common.c
parentjfs: convert to ctime accessor functions (diff)
downloadlinux-f7f438589f4686758ee1de99c7723919a2b05d70.tar.xz
linux-f7f438589f4686758ee1de99c7723919a2b05d70.zip
kernfs: 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. Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Jeff Layton <jlayton@kernel.org> Reviewed-by: Jan Kara <jack@suse.cz> Message-Id: <20230705190309.579783-54-jlayton@kernel.org> Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/minix/itree_common.c')
-rw-r--r--fs/minix/itree_common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/minix/itree_common.c b/fs/minix/itree_common.c
index 446148792f41..ce18ae37c29d 100644
--- a/fs/minix/itree_common.c
+++ b/fs/minix/itree_common.c
@@ -131,7 +131,7 @@ static inline int splice_branch(struct inode *inode,
/* We are done with atomic stuff, now do the rest of housekeeping */
- inode->i_ctime = current_time(inode);
+ inode_set_ctime_current(inode);
/* had we spliced it onto indirect block? */
if (where->bh)
@@ -350,7 +350,7 @@ do_indirects:
}
first_whole++;
}
- inode->i_mtime = inode->i_ctime = current_time(inode);
+ inode->i_mtime = inode_set_ctime_current(inode);
mark_inode_dirty(inode);
}