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/coda_linux.c | |
parent | 7795aef0819225db9aea918b7f7c47a854304d5e (diff) | |
download | linux-ea9b53d4ae6619963f760bc5f3a1411b59a803f1.tar.gz linux-ea9b53d4ae6619963f760bc5f3a1411b59a803f1.tar.bz2 linux-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/coda_linux.c')
-rw-r--r-- | fs/coda/coda_linux.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/coda/coda_linux.c b/fs/coda/coda_linux.c index 903ca8fa4b9b..ae023853a98f 100644 --- a/fs/coda/coda_linux.c +++ b/fs/coda/coda_linux.c @@ -127,7 +127,8 @@ void coda_vattr_to_iattr(struct inode *inode, struct coda_vattr *attr) if (attr->va_mtime.tv_sec != -1) inode->i_mtime = coda_to_timespec64(attr->va_mtime); if (attr->va_ctime.tv_sec != -1) - inode->i_ctime = coda_to_timespec64(attr->va_ctime); + inode_set_ctime_to_ts(inode, + coda_to_timespec64(attr->va_ctime)); } |