[Devel] [PATCH RH8] qcow2: Use vfs_truncate2()

Kirill Tkhai ktkhai at virtuozzo.com
Tue Jul 20 11:15:41 MSK 2021


vstorage wants file argument.

Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
 drivers/md/dm-qcow2-map.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/md/dm-qcow2-map.c b/drivers/md/dm-qcow2-map.c
index 133d74bf0b33..d6e1c08c8fb3 100644
--- a/drivers/md/dm-qcow2-map.c
+++ b/drivers/md/dm-qcow2-map.c
@@ -2056,7 +2056,7 @@ int qcow2_truncate_safe(struct file *file, loff_t new_len)
 {
 	int ret;
 
-	ret = vfs_truncate(&file->f_path, new_len);
+	ret = vfs_truncate2(&file->f_path, new_len, file);
 	if (ret)
 		return ret;
 




More information about the Devel mailing list