mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 04:02:20 +00:00
ecryptfs: 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-34-jlayton@kernel.org> Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
parent
2ca7b9cd76
commit
79d9ce76cc
@ -148,7 +148,7 @@ static int ecryptfs_do_unlink(struct inode *dir, struct dentry *dentry,
|
||||
}
|
||||
fsstack_copy_attr_times(dir, lower_dir);
|
||||
set_nlink(inode, ecryptfs_inode_to_lower(inode)->i_nlink);
|
||||
inode->i_ctime = dir->i_ctime;
|
||||
inode_set_ctime_to_ts(inode, inode_get_ctime(dir));
|
||||
out_unlock:
|
||||
dput(lower_dentry);
|
||||
inode_unlock(lower_dir);
|
||||
|
Loading…
Reference in New Issue
Block a user