diff options
author | Jeff Layton <jlayton@kernel.org> | 2023-07-05 15:01:25 -0400 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2023-07-24 10:30:02 +0200 |
commit | 03870d277fea0efb33d5de792194589130c6a3cb (patch) | |
tree | a24f0f5fd50fe774b03389e041650633ac56af16 /fs/ntfs/mft.c | |
parent | e21d4f419402ce71f6ddd10449af85356293e788 (diff) | |
download | linux-stable-03870d277fea0efb33d5de792194589130c6a3cb.tar.gz linux-stable-03870d277fea0efb33d5de792194589130c6a3cb.tar.bz2 linux-stable-03870d277fea0efb33d5de792194589130c6a3cb.zip |
ntfs: 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-58-jlayton@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/ntfs/mft.c')
-rw-r--r-- | fs/ntfs/mft.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ntfs/mft.c b/fs/ntfs/mft.c index 0155f106ec34..ad1a8f72da22 100644 --- a/fs/ntfs/mft.c +++ b/fs/ntfs/mft.c @@ -2682,8 +2682,7 @@ mft_rec_already_initialized: vi->i_mode &= ~S_IWUGO; /* Set the inode times to the current time. */ - vi->i_atime = vi->i_mtime = vi->i_ctime = - current_time(vi); + vi->i_atime = vi->i_mtime = inode_set_ctime_current(vi); /* * Set the file size to 0, the ntfs inode sizes are set to 0 by * the call to ntfs_init_big_inode() below. |