]> git.proxmox.com Git - mirror_zfs.git/blobdiff - module/zfs/vdev_removal.c
Simplify spa_sync by breaking it up to smaller functions
[mirror_zfs.git] / module / zfs / vdev_removal.c
index 1896e824f8e0dc4b392307c69fb6bc6687ae81c2..8d89007872f8a912b1299621ffd4dac60a476d5c 100644 (file)
@@ -1798,6 +1798,9 @@ svr_sync(spa_t *spa, dmu_tx_t *tx)
        spa_vdev_removal_t *svr = spa->spa_vdev_removal;
        int txgoff = dmu_tx_get_txg(tx) & TXG_MASK;
 
+       if (svr == NULL)
+               return;
+
        /*
         * This check is necessary so that we do not dirty the
         * DIRECTORY_OBJECT via spa_sync_removing_state() when there