Lines Matching defs:ul

212 	ml_unit_t *ul;
215 ul = ufsvfsp->vfs_log;
216 if (ul == NULL)
219 mtm = ul->un_logmap;
235 logmap_roll_dev(ul);
238 logmap_kill_roll(ul);
241 if (ul->un_ebp)
242 kmem_free(ul->un_ebp, ul->un_nbeb);
245 free_cirbuf(&ul->un_rdbuf);
246 free_cirbuf(&ul->un_wrbuf);
249 if (ul->un_logmap)
250 ul->un_logmap = map_put(ul->un_logmap);
251 if (ul->un_deltamap)
252 ul->un_deltamap = map_put(ul->un_deltamap);
253 if (ul->un_matamap)
254 ul->un_matamap = map_put(ul->un_matamap);
256 mutex_destroy(&ul->un_log_mutex);
257 mutex_destroy(&ul->un_state_mutex);
260 if (ul->un_bp)
261 brelse(ul->un_bp);
262 kmem_free(ul, sizeof (*ul));
271 ml_unit_t *ul;
369 ul = (ml_unit_t *)kmem_zalloc(sizeof (*ul), KM_SLEEP);
370 bcopy(bp->b_un.b_addr, &ul->un_ondisk, sizeof (ml_odunit_t));
371 if ((ul->un_chksum != ul->un_head_ident + ul->un_tail_ident) ||
372 (ul->un_version != LUFS_VERSION_LATEST) ||
373 (!ronly && ul->un_badlog)) {
374 kmem_free(ul, sizeof (*ul));
383 ul->un_flags |= LDL_NOROLL;
384 ul->un_bp = bp;
385 ul->un_ufsvfs = ufsvfsp;
386 ul->un_dev = ufsvfsp->vfs_dev;
387 ul->un_ebp = nebp;
388 ul->un_nbeb = nb;
389 ul->un_maxresv = btodb(ul->un_logsize) * LDL_USABLE_BSIZE;
390 ul->un_deltamap = map_get(ul, deltamaptype, DELTAMAP_NHASH);
391 ul->un_logmap = map_get(ul, logmaptype, LOGMAP_NHASH);
392 if (ul->un_debug & MT_MATAMAP)
393 ul->un_matamap = map_get(ul, matamaptype, DELTAMAP_NHASH);
394 mutex_init(&ul->un_log_mutex, NULL, MUTEX_DEFAULT, NULL);
395 mutex_init(&ul->un_state_mutex, NULL, MUTEX_DEFAULT, NULL);
404 ufsvfsp->vfs_log = ul;
407 logmap_logscan(ul);
417 if (ul->un_flags & LDL_ERROR) {
431 ul->un_flags &= ~LDL_ERROR;
434 logmap_start_roll(ul);
989 ml_unit_t *ul;
1102 ul = ufsvfsp->vfs_log;
1103 if (ul && fs->fs_logbno && (flp->nbytes_actual == ul->un_requestsize))
1276 lufs_read_strategy(ml_unit_t *ul, buf_t *bp)
1278 mt_map_t *logmap = ul->un_logmap;
1297 if (ul->un_flags & LDL_ERROR) {
1302 ul->un_ufsvfs->vfs_iotstamp = ddi_get_lbolt();
1322 ldl_seterror(ul, "Error reading master");
1330 if (ldl_read(ul, va, mof, nb, age)) {
1343 if (ul->un_flags & LDL_ERROR) {
1351 lufs_write_strategy(ml_unit_t *ul, buf_t *bp)
1359 ul->un_logmap->mtm_ref = 1;
1364 me = deltamap_remove(ul->un_deltamap, mof, nb);
1369 ASSERT(((ul->un_debug & MT_WRITE_CHECK) == 0) ||
1370 (ul->un_matamap == NULL)||
1371 matamap_within(ul->un_matamap, mof, nb));
1377 logmap_add_buf(ul, va, mof, me,
1380 logmap_add(ul, va, mof, me);
1383 if (ul->un_flags & LDL_ERROR) {
1390 if (ul->un_flags & LDL_ERROR) {
1400 ASSERT((ul->un_matamap == NULL) ||
1401 !(matamap_overlap(ul->un_matamap, mof, nb) &&
1404 ul->un_ufsvfs->vfs_iotstamp = ddi_get_lbolt();
1408 if (ul->un_ufsvfs->vfs_snapshot)
1409 fssnap_strategy(&ul->un_ufsvfs->vfs_snapshot, bp);
1417 lufs_strategy(ml_unit_t *ul, buf_t *bp)
1420 lufs_read_strategy(ul, bp);
1422 lufs_write_strategy(ul, bp);