Lines Matching defs:ul
157 map_get(ml_unit_t *ul, enum maptypes maptype, int nh)
175 mtm->mtm_debug = ul->un_debug;
184 mtm->mtm_ul = ul;
194 ASSERT(map_get_debug(ul, mtm));
405 deltamap_push(ml_unit_t *ul)
413 mt_map_t *mtm = ul->un_deltamap;
428 if ((ul->un_flags & LDL_ERROR) ||
429 (*func)(ul->un_ufsvfs, dtyp, arg))
461 logmap_start_roll(ml_unit_t *ul)
463 mt_map_t *logmap = ul->un_logmap;
465 logmap_settail(logmap, ul);
466 ASSERT(!(ul->un_flags & LDL_NOROLL));
471 (void) thread_create(NULL, 0, trans_roll, ul, 0, &p0,
478 logmap_kill_roll(ml_unit_t *ul)
480 mt_map_t *mtm = ul->un_logmap;
998 logmap_abort(ml_unit_t *ul, uint32_t tid)
1000 struct mt_map *mtm = ul->un_logmap; /* Log map */
1049 if (!(ul->un_flags & LDL_SCAN))
1061 logmap_wait_space(mt_map_t *mtm, ml_unit_t *ul, mapentry_t *me)
1063 ASSERT(MUTEX_HELD(&ul->un_log_mutex));
1065 while (!ldl_has_space(ul, me)) {
1066 ASSERT(!(ul->un_flags & LDL_NOROLL));
1067 mutex_exit(&ul->un_log_mutex);
1069 mutex_enter(&ul->un_log_mutex);
1070 if (ul->un_flags & LDL_ERROR)
1074 ASSERT(MUTEX_HELD(&ul->un_log_mutex));
1083 ml_unit_t *ul,
1094 mt_map_t *mtm = ul->un_logmap;
1096 mutex_enter(&ul->un_log_mutex);
1098 logmap_wait_space(mtm, ul, melist);
1166 ldl_write(ul, va, vamof, me);
1167 if (ul->un_flags & LDL_ERROR) {
1173 map_check_ldl_write(ul, va, vamof, me));
1195 mutex_exit(&ul->un_log_mutex);
1207 ml_unit_t *ul,
1221 mt_map_t *mtm = ul->un_logmap;
1226 mutex_enter(&ul->un_log_mutex);
1227 logmap_wait_space(mtm, ul, melist);
1369 ldl_write(ul, va, vamof, me); /* add to on-disk log */
1370 if (ul->un_flags & LDL_ERROR) {
1376 map_check_ldl_write(ul, va, vamof, me));
1398 mutex_exit(&ul->un_log_mutex);
1489 logmap_commit(ml_unit_t *ul, uint32_t tid)
1492 mt_map_t *mtm = ul->un_logmap;
1495 ASSERT(MUTEX_HELD(&ul->un_log_mutex));
1508 logmap_wait_space(mtm, ul, &me);
1509 ldl_write(ul, NULL, (offset_t)0, &me);
1510 ldl_round_commit(ul);
1515 if (ul->un_flags & LDL_ERROR)
1516 logmap_abort(ul, tid);
1523 ldl_push_commit(ul);
1528 logmap_sethead(mt_map_t *mtm, ml_unit_t *ul)
1540 mutex_enter(&ul->un_log_mutex);
1554 ldl_sethead(ul, lof, tid);
1557 mutex_exit(&ul->un_log_mutex);
1561 logmap_settail(mt_map_t *mtm, ml_unit_t *ul)
1569 mutex_enter(&ul->un_log_mutex);
1581 ldl_settail(ul, lof, nb);
1582 mutex_exit(&ul->un_log_mutex);
1590 logmap_roll_dev(ml_unit_t *ul)
1592 mt_map_t *mtm = ul->un_logmap;
1594 ufsvfs_t *ufsvfsp = ul->un_ufsvfs;
1599 if (ul->un_flags & (LDL_ERROR|LDL_NOROLL))
1630 (void) ufs_putsummaryinfo(ul->un_dev, ufsvfsp, ufsvfsp->vfs_fs);
1637 logmap_cancel_delta(ml_unit_t *ul, offset_t mof, int32_t nb, int metadata)
1641 mt_map_t *mtm = ul->un_logmap;
1674 mutex_enter(&ul->un_log_mutex);
1676 logmap_wait_space(mtm, ul, me);
1677 ldl_write(ul, NULL, (offset_t)0, me);
1678 if (ul->un_flags & LDL_ERROR) {
1680 mutex_exit(&ul->un_log_mutex);
1707 frags = blkoff(ul->un_ufsvfs->vfs_fs, nb);
1710 numfrags(ul->un_ufsvfs->vfs_fs, frags);
1714 mutex_exit(&ul->un_log_mutex);
1721 logmap_cancel(ml_unit_t *ul, offset_t mof, off_t nb, int metadata)
1726 mt_map_t *mtm = ul->un_logmap;
1767 logmap_cancel_delta(ul, mof, hnb, metadata);
1814 logmap_logscan_add(ml_unit_t *ul, struct delta *dp, off_t lof, size_t *nbp)
1818 mt_map_t *mtm = ul->un_logmap;
1842 ldl_seterror(ul, "Error processing ufs log data during scan");
1881 logmap_add(ul, NULL, 0, me);
1906 logmap_logscan(ml_unit_t *ul)
1911 mt_map_t *logmap = ul->un_logmap;
1913 ASSERT(ul->un_deltamap->mtm_next == (mapentry_t *)ul->un_deltamap);
1918 ldl_logscan_begin(ul);
1936 lof = ul->un_head_lof;
1938 while (lof != ul->un_tail_lof) {
1941 if (ldl_logscan_read(ul, &lof, nbd, (caddr_t)&delta))
1945 if (logmap_logscan_add(ul, &delta, lof, &nb))
1949 if (ldl_logscan_read(ul, &lof, nb, NULL))
1956 logmap_abort(ul, logmap->mtm_tid);
1958 ldl_logscan_end(ul);