Lines Matching refs:msp
682 metaslab_t *msp; in vdev_top_transfer() local
716 while ((msp = txg_list_remove(&svd->vdev_ms_list, t)) != NULL) in vdev_top_transfer()
717 (void) txg_list_add(&tvd->vdev_ms_list, msp, t); in vdev_top_transfer()
914 metaslab_t *msp = vd->vdev_ms[m]; in vdev_metaslab_fini() local
916 if (msp != NULL) in vdev_metaslab_fini()
917 metaslab_fini(msp); in vdev_metaslab_fini()
2173 metaslab_t *msp = vd->vdev_ms[m]; in vdev_remove() local
2175 if (msp == NULL || msp->ms_sm == NULL) in vdev_remove()
2178 mutex_enter(&msp->ms_lock); in vdev_remove()
2186 metaslab_group_histogram_remove(mg, msp); in vdev_remove()
2188 VERIFY0(space_map_allocated(msp->ms_sm)); in vdev_remove()
2189 space_map_free(msp->ms_sm, tx); in vdev_remove()
2190 space_map_close(msp->ms_sm); in vdev_remove()
2191 msp->ms_sm = NULL; in vdev_remove()
2192 mutex_exit(&msp->ms_lock); in vdev_remove()
2212 metaslab_t *msp; in vdev_sync_done() local
2217 while (msp = txg_list_remove(&vd->vdev_ms_list, TXG_CLEAN(txg))) in vdev_sync_done()
2218 metaslab_sync_done(msp, txg); in vdev_sync_done()
2229 metaslab_t *msp; in vdev_sync() local
2250 while ((msp = txg_list_remove(&vd->vdev_ms_list, txg)) != NULL) { in vdev_sync()
2251 metaslab_sync(msp, txg); in vdev_sync()
2252 (void) txg_list_add(&vd->vdev_ms_list, msp, TXG_CLEAN(txg)); in vdev_sync()