vstorage wants file argument.

Signed-off-by: Kirill Tkhai <[email protected]>
---
 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;
 


_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to