diff options
author | Jeff Layton <jlayton@kernel.org> | 2023-07-05 15:00:56 -0400 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2023-07-13 10:28:05 +0200 |
commit | ea9b53d4ae6619963f760bc5f3a1411b59a803f1 (patch) | |
tree | 2498f9b18da53c64b4e7699c92c090b7a54011e6 /fs/coda/file.c | |
parent | 7795aef0819225db9aea918b7f7c47a854304d5e (diff) | |
download | lwn-ea9b53d4ae6619963f760bc5f3a1411b59a803f1.tar.gz lwn-ea9b53d4ae6619963f760bc5f3a1411b59a803f1.zip |
coda: 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-29-jlayton@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/coda/file.c')
-rw-r--r-- | fs/coda/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/coda/file.c b/fs/coda/file.c index 12b26bd13564..42346618b4ed 100644 --- a/fs/coda/file.c +++ b/fs/coda/file.c @@ -84,7 +84,7 @@ coda_file_write_iter(struct kiocb *iocb, struct iov_iter *to) ret = vfs_iter_write(cfi->cfi_container, to, &iocb->ki_pos, 0); coda_inode->i_size = file_inode(host_file)->i_size; coda_inode->i_blocks = (coda_inode->i_size + 511) >> 9; - coda_inode->i_mtime = coda_inode->i_ctime = current_time(coda_inode); + coda_inode->i_mtime = inode_set_ctime_current(coda_inode); inode_unlock(coda_inode); file_end_write(host_file); |