mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	efivarfs: convert to new timestamp accessors
Convert to using the new inode timestamp accessor functions. Signed-off-by: Jeff Layton <jlayton@kernel.org> Link: https://lore.kernel.org/r/20231004185347.80880-28-jlayton@kernel.org Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
		
							parent
							
								
									69d9116d0a
								
							
						
					
					
						commit
						da06c204ff
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -51,7 +51,7 @@ static ssize_t efivarfs_file_write(struct file *file,
 | 
				
			||||||
	} else {
 | 
						} else {
 | 
				
			||||||
		inode_lock(inode);
 | 
							inode_lock(inode);
 | 
				
			||||||
		i_size_write(inode, datasize + sizeof(attributes));
 | 
							i_size_write(inode, datasize + sizeof(attributes));
 | 
				
			||||||
		inode->i_mtime = inode_set_ctime_current(inode);
 | 
							inode_set_mtime_to_ts(inode, inode_set_ctime_current(inode));
 | 
				
			||||||
		inode_unlock(inode);
 | 
							inode_unlock(inode);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -25,7 +25,7 @@ struct inode *efivarfs_get_inode(struct super_block *sb,
 | 
				
			||||||
	if (inode) {
 | 
						if (inode) {
 | 
				
			||||||
		inode->i_ino = get_next_ino();
 | 
							inode->i_ino = get_next_ino();
 | 
				
			||||||
		inode->i_mode = mode;
 | 
							inode->i_mode = mode;
 | 
				
			||||||
		inode->i_atime = inode->i_mtime = inode_set_ctime_current(inode);
 | 
							simple_inode_init_ts(inode);
 | 
				
			||||||
		inode->i_flags = is_removable ? 0 : S_IMMUTABLE;
 | 
							inode->i_flags = is_removable ? 0 : S_IMMUTABLE;
 | 
				
			||||||
		switch (mode & S_IFMT) {
 | 
							switch (mode & S_IFMT) {
 | 
				
			||||||
		case S_IFREG:
 | 
							case S_IFREG:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue