mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 16:54:21 +00:00 
			
		
		
		
	vboxsf: 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-79-jlayton@kernel.org> Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
		
							parent
							
								
									6eeb017e4f
								
							
						
					
					
						commit
						0593be0c8e
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -128,8 +128,8 @@ int vboxsf_init_inode(struct vboxsf_sbi *sbi, struct inode *inode, | |||
| 
 | ||||
| 	inode->i_atime = ns_to_timespec64( | ||||
| 				 info->access_time.ns_relative_to_unix_epoch); | ||||
| 	inode->i_ctime = ns_to_timespec64( | ||||
| 				 info->change_time.ns_relative_to_unix_epoch); | ||||
| 	inode_set_ctime_to_ts(inode, | ||||
| 			      ns_to_timespec64(info->change_time.ns_relative_to_unix_epoch)); | ||||
| 	inode->i_mtime = ns_to_timespec64( | ||||
| 			   info->modification_time.ns_relative_to_unix_epoch); | ||||
| 	return 0; | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Jeff Layton
						Jeff Layton