]> git.proxmox.com Git - mirror_qemu.git/blobdiff - block/write-threshold.c
block/qcow2: Metadata preallocation for truncate
[mirror_qemu.git] / block / write-threshold.c
index 0fe38917c58e1793ea77acfaee44fb08edf35a5d..0bd1a01c860289024079d06840093e5c3ee4e33c 100644 (file)
@@ -10,6 +10,7 @@
  * See the COPYING.LIB file in the top-level directory.
  */
 
+#include "qemu/osdep.h"
 #include "block/block_int.h"
 #include "qemu/coroutine.h"
 #include "block/write-threshold.h"
@@ -75,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,