mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-28 14:44:10 +08:00
efivarfs: Update inode modification time for successful writes
Some applications want to be able to see when EFI variables have been updated. Update the modification time for successful writes. Reported-by: Lennart Poettering <mzxreary@0pointer.de> Signed-off-by: Tony Luck <tony.luck@intel.com> Link: https://lore.kernel.org/r/20200528194905.690-2-tony.luck@intel.com Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
This commit is contained in:
parent
4ddf4739be
commit
2096721f15
@ -51,6 +51,7 @@ static ssize_t efivarfs_file_write(struct file *file,
|
||||
} else {
|
||||
inode_lock(inode);
|
||||
i_size_write(inode, datasize + sizeof(attributes));
|
||||
inode->i_mtime = current_time(inode);
|
||||
inode_unlock(inode);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user