diff options
author | Jeff Layton <jlayton@kernel.org> | 2023-07-05 15:01:47 -0400 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2023-07-24 10:30:06 +0200 |
commit | a0a415e34b57368acd262e1172720252c028b936 (patch) | |
tree | 3bd42760a35150a27d2dff9c27f60f3e55632258 /fs/xfs/libxfs/xfs_trans_inode.c | |
parent | 0593be0c8e60c05cc130db2f98281b0fe3379083 (diff) | |
download | linux-a0a415e34b57368acd262e1172720252c028b936.tar.gz linux-a0a415e34b57368acd262e1172720252c028b936.tar.bz2 linux-a0a415e34b57368acd262e1172720252c028b936.zip |
xfs: 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-80-jlayton@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/xfs/libxfs/xfs_trans_inode.c')
-rw-r--r-- | fs/xfs/libxfs/xfs_trans_inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_trans_inode.c b/fs/xfs/libxfs/xfs_trans_inode.c index cb4796b6e693..6b2296ff248a 100644 --- a/fs/xfs/libxfs/xfs_trans_inode.c +++ b/fs/xfs/libxfs/xfs_trans_inode.c @@ -67,7 +67,7 @@ xfs_trans_ichgtime( if (flags & XFS_ICHGTIME_MOD) inode->i_mtime = tv; if (flags & XFS_ICHGTIME_CHG) - inode->i_ctime = tv; + inode_set_ctime_to_ts(inode, tv); if (flags & XFS_ICHGTIME_CREATE) ip->i_crtime = tv; } |