diff options
author | Jeff Layton <jlayton@kernel.org> | 2023-07-05 15:00:55 -0400 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2023-07-13 10:28:05 +0200 |
commit | 7795aef0819225db9aea918b7f7c47a854304d5e (patch) | |
tree | b10e36907228d9e7784f23854831983d4e9d6684 /fs/ceph/xattr.c | |
parent | 2a9462de4352d141ca17d7b872dee64d3ba8995f (diff) | |
download | linux-stable-7795aef0819225db9aea918b7f7c47a854304d5e.tar.gz linux-stable-7795aef0819225db9aea918b7f7c47a854304d5e.tar.bz2 linux-stable-7795aef0819225db9aea918b7f7c47a854304d5e.zip |
ceph: 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: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Jan Kara <jack@suse.cz>
Message-Id: <20230705190309.579783-28-jlayton@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/ceph/xattr.c')
-rw-r--r-- | fs/ceph/xattr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/xattr.c b/fs/ceph/xattr.c index 806183959c47..1cbd84cc82a8 100644 --- a/fs/ceph/xattr.c +++ b/fs/ceph/xattr.c @@ -1238,7 +1238,7 @@ retry: dirty = __ceph_mark_dirty_caps(ci, CEPH_CAP_XATTR_EXCL, &prealloc_cf); ci->i_xattrs.dirty = true; - inode->i_ctime = current_time(inode); + inode_set_ctime_current(inode); } spin_unlock(&ci->i_ceph_lock); |