spa_checkpoint_get_stats
int spa_checkpoint_get_stats(spa_t *, pool_checkpoint_stat_t *);
if (spa_checkpoint_get_stats(spa, &pcs) == 0) {