]> git.proxmox.com Git - mirror_qemu.git/blobdiff - block/write-threshold.c
parallels: wrong call to bdrv_truncate
[mirror_qemu.git] / block / write-threshold.c
index cc2ca71835e98de8badbc5ac5e18079f4187a1b8..0bd1a01c860289024079d06840093e5c3ee4e33c 100644 (file)
@@ -76,8 +76,7 @@ static int coroutine_fn before_write_notify(NotifierWithReturn *notifier,
 static void write_threshold_register_notifier(BlockDriverState *bs)
 {
     bs->write_threshold_notifier.notify = before_write_notify;
-    notifier_with_return_list_add(&bs->before_write_notifiers,
-                                  &bs->write_threshold_notifier);
+    bdrv_add_before_write_notifier(bs, &bs->write_threshold_notifier);
 }
 
 static void write_threshold_update(BlockDriverState *bs,