Lines Matching refs:cmn
776 cow_map_node_t *cmn; in snap_getchunk() local
882 cmn = transtbl_get(cmap, chunk); in snap_getchunk()
885 if (cmn != NULL) { in snap_getchunk()
886 ASSERT(cmn->cmn_buf); in snap_getchunk()
888 bcopy(cmn->cmn_buf + offset, buffer, len); in snap_getchunk()
1222 cow_map_node_t *cmn; in transtbl_get() local
1228 for (cmn = cmap->cmap_table; cmn != NULL; cmn = cmn->cmn_next) { in transtbl_get()
1229 if (cmn->cmn_chunk == chunk) in transtbl_get()
1230 return (cmn); in transtbl_get()
1246 transtbl_delete(cow_map_t *cmap, cow_map_node_t *cmn) in transtbl_delete() argument
1249 ASSERT(cmn); in transtbl_delete()
1253 if (cmap->cmap_table == cmn) { in transtbl_delete()
1254 ASSERT(cmn->cmn_prev == NULL); in transtbl_delete()
1255 cmap->cmap_table = cmn->cmn_next; in transtbl_delete()
1260 if (cmn->cmn_prev != NULL) { in transtbl_delete()
1261 ASSERT(cmn->cmn_prev->cmn_next == cmn); in transtbl_delete()
1262 cmn->cmn_prev->cmn_next = cmn->cmn_next; in transtbl_delete()
1266 if (cmn->cmn_next != NULL) { in transtbl_delete()
1267 ASSERT(cmn->cmn_next->cmn_prev == cmn); in transtbl_delete()
1268 cmn->cmn_next->cmn_prev = cmn->cmn_prev; in transtbl_delete()
1272 ASSERT(cmn->cmn_buf); in transtbl_delete()
1273 kmem_free(cmn->cmn_buf, cmap->cmap_chunksz); in transtbl_delete()
1274 kmem_free(cmn, sizeof (cow_map_node_t)); in transtbl_delete()
1448 cow_map_node_t *cmn; in fssnap_translate() local
1614 cmn = transtbl_add(cmap, cowchunk, oldbp->b_un.b_addr); in fssnap_translate()
1622 cmn->cmn_sid = sidp; in fssnap_translate()
1623 cmn->release_sem = throttle_write; in fssnap_translate()
1633 fssnap_write_taskq, cmn, TQ_SLEEP); in fssnap_translate()
1658 cow_map_node_t *cmn = (cow_map_node_t *)arg; in fssnap_write_taskq() local
1659 snapshot_id_t *sidp = cmn->cmn_sid; in fssnap_write_taskq()
1664 int release_sem = cmn->release_sem; in fssnap_write_taskq()
1699 bf_index = cmn->cmn_chunk / cmap->cmap_chunksperbf; in fssnap_write_taskq()
1702 cmn->cmn_buf, cmap->cmap_chunksz, in fssnap_write_taskq()
1703 (cmn->cmn_chunk % cmap->cmap_chunksperbf) * cmap->cmap_chunksz, in fssnap_write_taskq()
1709 cmn->cmn_chunk * cmap->cmap_chunksz, error); in fssnap_write_taskq()
1720 transtbl_delete(cmap, cmn); in fssnap_write_taskq()