diff options
author | Jeff Layton <jlayton@kernel.org> | 2023-07-05 21:00:50 +0200 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2023-07-13 10:28:04 +0200 |
commit | 2276e5ba8567f683c49a36ba885d0fe6abe2b45e (patch) | |
tree | f7e72f653deb4fefae34686d57393702e9c979b1 /fs/bad_inode.c | |
parent | afs: convert to ctime accessor functions (diff) | |
download | linux-2276e5ba8567f683c49a36ba885d0fe6abe2b45e.tar.xz linux-2276e5ba8567f683c49a36ba885d0fe6abe2b45e.zip |
fs: 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.
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Message-Id: <20230705190309.579783-23-jlayton@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/bad_inode.c')
-rw-r--r-- | fs/bad_inode.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/bad_inode.c b/fs/bad_inode.c index db649487d58c..6e21f7412a85 100644 --- a/fs/bad_inode.c +++ b/fs/bad_inode.c @@ -209,8 +209,7 @@ void make_bad_inode(struct inode *inode) remove_inode_hash(inode); inode->i_mode = S_IFREG; - 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_op = &bad_inode_ops; inode->i_opflags &= ~IOP_XATTR; inode->i_fop = &bad_file_ops; |