]> git.proxmox.com Git - mirror_zfs.git/blobdiff - include/sys/spa_impl.h
OpenZFS 9166 - zfs storage pool checkpoint
[mirror_zfs.git] / include / sys / spa_impl.h
index 6abb631577fca6f90eaa9d83b0930d7f61780dc3..8d2a31961d66581d11e67511fe4f688e6346fcc0 100644 (file)
@@ -32,6 +32,7 @@
 #define        _SYS_SPA_IMPL_H
 
 #include <sys/spa.h>
+#include <sys/spa_checkpoint.h>
 #include <sys/vdev.h>
 #include <sys/vdev_removal.h>
 #include <sys/metaslab.h>
@@ -284,6 +285,10 @@ struct spa {
        spa_condensing_indirect_t       *spa_condensing_indirect;
        zthr_t          *spa_condense_zthr;     /* zthr doing condense. */
 
+       uint64_t        spa_checkpoint_txg;     /* the txg of the checkpoint */
+       spa_checkpoint_info_t spa_checkpoint_info; /* checkpoint accounting */
+       zthr_t          *spa_checkpoint_discard_zthr;
+
        char            *spa_root;              /* alternate root directory */
        uint64_t        spa_ena;                /* spa-wide ereport ENA */
        int             spa_last_open_failed;   /* error if last open failed */