diff options
author | Jeff Layton <jlayton@kernel.org> | 2023-07-05 22:00:54 +0300 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2023-07-13 11:28:04 +0300 |
commit | 2a9462de4352d141ca17d7b872dee64d3ba8995f (patch) | |
tree | c34c08d1678e3b33c550b02be76bca8755d8448e /fs/btrfs/ioctl.c | |
parent | 73d9b9d028176b448d3912c47db13b614fef4a65 (diff) | |
download | linux-2a9462de4352d141ca17d7b872dee64d3ba8995f.tar.xz |
btrfs: 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-27-jlayton@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r-- | fs/btrfs/ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index a895d105464b..a18ee7b5a166 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -384,7 +384,7 @@ update_flags: binode->flags = binode_flags; btrfs_sync_inode_flags_to_i_flags(inode); inode_inc_iversion(inode); - inode->i_ctime = current_time(inode); + inode_set_ctime_current(inode); ret = btrfs_update_inode(trans, root, BTRFS_I(inode)); out_end_trans: |