[Devel] [PATCH RHEL8 COMMIT] qcow2: Use vfs_truncate2()
Konstantin Khorenko
khorenko at virtuozzo.com
Tue Jul 20 12:32:26 MSK 2021
The commit is pushed to "branch-rh8-4.18.0-240.1.1.vz8.5.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh8-4.18.0-240.1.1.vz8.5.58
------>
commit a9eff9e3f69bfeb35d1d2dec13bd4d0dc97028f2
Author: Kirill Tkhai <ktkhai at virtuozzo.com>
Date: Tue Jul 20 12:32:26 2021 +0300
qcow2: Use vfs_truncate2()
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