Lines Matching refs:mtm
153 top_end_debug(ml_unit_t *ul, mt_map_t *mtm, top_t topid, ulong_t size) in top_end_debug() argument
166 mtm->mtm_tops->mtm_top_num[topid]++; in top_end_debug()
167 mtm->mtm_tops->mtm_top_size_etot[topid] += tp->esize; in top_end_debug()
168 mtm->mtm_tops->mtm_top_size_rtot[topid] += tp->rsize; in top_end_debug()
170 if (tp->rsize > mtm->mtm_tops->mtm_top_size_max[topid]) in top_end_debug()
171 mtm->mtm_tops->mtm_top_size_max[topid] = tp->rsize; in top_end_debug()
172 if (mtm->mtm_tops->mtm_top_size_min[topid] == 0) in top_end_debug()
173 mtm->mtm_tops->mtm_top_size_min[topid] = in top_end_debug()
176 if (tp->rsize < mtm->mtm_tops->mtm_top_size_min[topid]) in top_end_debug()
177 mtm->mtm_tops->mtm_top_size_min[topid] = in top_end_debug()
265 logmap_logscan_debug(mt_map_t *mtm, mapentry_t *age) in logmap_logscan_debug() argument
274 mutex_enter(&mtm->mtm_mutex); in logmap_logscan_debug()
275 ul = mtm->mtm_ul; in logmap_logscan_debug()
277 trimroll = mtm->mtm_trimrlof; in logmap_logscan_debug()
290 mtm->mtm_trimrlof = trimroll; in logmap_logscan_debug()
291 mutex_exit(&mtm->mtm_mutex); in logmap_logscan_debug()
299 logmap_logscan_commit_debug(off_t lof, mt_map_t *mtm) in logmap_logscan_commit_debug() argument
303 trimroll = mtm->mtm_trimrlof; in logmap_logscan_commit_debug()
304 oldtrimc = mtm->mtm_trimclof; in logmap_logscan_commit_debug()
305 newtrimc = mtm->mtm_trimclof = dbtob(btod(lof)); in logmap_logscan_commit_debug()
313 mtm->mtm_trimalof = newtrimc; in logmap_logscan_commit_debug()
316 mtm->mtm_trimalof = newtrimc; in logmap_logscan_commit_debug()
322 logmap_logscan_add_debug(struct delta *dp, mt_map_t *mtm) in logmap_logscan_add_debug() argument
325 mtm->mtm_trimalof = mtm->mtm_trimclof; in logmap_logscan_add_debug()
357 map_put_debug(mt_map_t *mtm) in map_put_debug() argument
361 if (mtm->mtm_tops == NULL) in map_put_debug()
371 if (mtm->mtm_tops == &tsl->ts_stats) { in map_put_debug()
372 mtm->mtm_tops = NULL; in map_put_debug()
385 map_get_debug(ml_unit_t *ul, mt_map_t *mtm) in map_get_debug() argument
392 if (mtm->mtm_type != logmaptype) in map_get_debug()
398 mtm->mtm_tops = &(tsl->ts_stats); in map_get_debug()
408 mtm->mtm_tops = &tsl->ts_stats; in map_get_debug()
416 map_check_linkage(mt_map_t *mtm) in map_check_linkage() argument
428 mutex_enter(&mtm->mtm_mutex); in map_check_linkage()
430 ASSERT(mtm->mtm_nme >= 0); in map_check_linkage()
436 for (i = 0; i < mtm->mtm_nhash; ++i) { in map_check_linkage()
437 for (me = *(mtm->mtm_hash+i); me; me = me->me_hash) { in map_check_linkage()
443 ASSERT(hashed >= mtm->mtm_nme); in map_check_linkage()
448 for (me = mtm->mtm_next; me != (mapentry_t *)mtm; me = me->me_next) in map_check_linkage()
451 for (me = mtm->mtm_prev; me != (mapentry_t *)mtm; me = me->me_prev) in map_check_linkage()
460 for (me = mtm->mtm_cancel; me; me = me->me_cancel) { in map_check_linkage()
467 if (mtm->mtm_type == logmaptype) { in map_check_linkage()
468 olof = mtm->mtm_next->me_lof; in map_check_linkage()
479 for (me = mtm->mtm_next->me_next; in map_check_linkage()
480 me != (mapentry_t *)mtm; in map_check_linkage()
488 if (me->me_next != (mapentry_t *)mtm) in map_check_linkage()
507 ASSERT(me->me_lof < mtm->mtm_ul->un_eol_lof); in map_check_linkage()
512 mutex_exit(&mtm->mtm_mutex); in map_check_linkage()
520 matamap_overlap(mt_map_t *mtm, offset_t mof, off_t nb) in matamap_overlap() argument
534 mep = MAP_HASH(mof, mtm); in matamap_overlap()
535 mutex_enter(&mtm->mtm_mutex); in matamap_overlap()
539 mutex_exit(&mtm->mtm_mutex); in matamap_overlap()
553 matamap_within(mt_map_t *mtm, offset_t mof, off_t nb) in matamap_within() argument
570 mep = MAP_HASH(mof, mtm); in matamap_within()
571 mutex_enter(&mtm->mtm_mutex); in matamap_within()
577 mutex_exit(&mtm->mtm_mutex); in matamap_within()
585 mt_map_t *mtm = ul->un_logmap; in ldl_sethead_debug() local
586 off_t trimr = mtm->mtm_trimrlof; in ldl_sethead_debug()
592 mtm->mtm_trimrlof = 0; in ldl_sethead_debug()
595 mtm->mtm_trimrlof = 0; in ldl_sethead_debug()