diff options
author | Jeff Layton <jlayton@kernel.org> | 2023-07-05 21:00:55 +0200 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2023-07-13 10:28:05 +0200 |
commit | 7795aef0819225db9aea918b7f7c47a854304d5e (patch) | |
tree | b10e36907228d9e7784f23854831983d4e9d6684 /fs/ceph/acl.c | |
parent | btrfs: convert to ctime accessor functions (diff) | |
download | linux-7795aef0819225db9aea918b7f7c47a854304d5e.tar.xz linux-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/acl.c')
-rw-r--r-- | fs/ceph/acl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/acl.c b/fs/ceph/acl.c index 6945a938d396..c91b293267d7 100644 --- a/fs/ceph/acl.c +++ b/fs/ceph/acl.c @@ -93,7 +93,7 @@ int ceph_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, char *value = NULL; struct iattr newattrs; struct inode *inode = d_inode(dentry); - struct timespec64 old_ctime = inode->i_ctime; + struct timespec64 old_ctime = inode_get_ctime(inode); umode_t new_mode = inode->i_mode, old_mode = inode->i_mode; if (ceph_snap(inode) != CEPH_NOSNAP) { |