Lines Matching defs:rl

689     redaction_list_t **rl)
695 dbcra.dbcra_rl = rl;
765 redaction_list_t *rl;
767 bmark_phys->zbm_redaction_obj, FTAG, &rl);
773 rl->rl_phys->rlp_snaps,
774 rl->rl_phys->rlp_num_snaps);
783 rl->rl_phys->rlp_last_blkid == UINT64_MAX &&
784 rl->rl_phys->rlp_last_object == UINT64_MAX);
789 dsl_redaction_list_rele(rl, FTAG);
1067 dnode_t *rl;
1069 dbn->dbn_phys.zbm_redaction_obj, FTAG, &rl));
1070 if (rl->dn_have_spill) {
1074 dnode_rele(rl, FTAG);
1127 redaction_list_t *rl = NULL;
1129 bm.zbm_redaction_obj, FTAG, &rl);
1133 dsl_redaction_list_long_held(rl)) {
1136 if (rl != NULL) {
1137 dsl_redaction_list_rele(rl, FTAG);
1217 dsl_redaction_list_long_held(redaction_list_t *rl)
1219 return (!zfs_refcount_is_zero(&rl->rl_longholds));
1223 dsl_redaction_list_long_hold(dsl_pool_t *dp, redaction_list_t *rl,
1227 (void) zfs_refcount_add(&rl->rl_longholds, tag);
1231 dsl_redaction_list_long_rele(redaction_list_t *rl, const void *tag)
1233 (void) zfs_refcount_remove(&rl->rl_longholds, tag);
1239 redaction_list_t *rl = rlu;
1240 zfs_refcount_destroy(&rl->rl_longholds);
1242 kmem_free(rl, sizeof (redaction_list_t));
1246 dsl_redaction_list_rele(redaction_list_t *rl, const void *tag)
1248 if (rl->rl_bonus != rl->rl_dbuf)
1249 dmu_buf_rele(rl->rl_dbuf, tag);
1250 dmu_buf_rele(rl->rl_bonus, tag);
1259 redaction_list_t *rl;
1268 rl = dmu_buf_get_user(dbuf);
1269 if (rl == NULL) {
1272 rl = kmem_zalloc(sizeof (redaction_list_t), KM_SLEEP);
1273 rl->rl_bonus = dbuf;
1275 rl->rl_dbuf = spill_dbuf;
1277 rl->rl_dbuf = dbuf;
1279 rl->rl_object = rlobj;
1280 rl->rl_phys = rl->rl_dbuf->db_data;
1281 rl->rl_mos = dp->dp_meta_objset;
1282 zfs_refcount_create(&rl->rl_longholds);
1283 dmu_buf_init_user(&rl->rl_dbu, redaction_list_evict_sync, NULL,
1284 &rl->rl_bonus);
1285 if ((winner = dmu_buf_set_user_ie(dbuf, &rl->rl_dbu)) != NULL) {
1286 kmem_free(rl, sizeof (*rl));
1287 rl = winner;
1290 *rlp = rl;
1643 dsl_redaction_list_traverse(redaction_list_t *rl, zbookmark_phys_t *resume,
1646 objset_t *mos = rl->rl_mos;
1649 if (rl->rl_phys->rlp_last_object != UINT64_MAX ||
1650 rl->rl_phys->rlp_last_blkid != UINT64_MAX) {
1672 uint64_t maxidx = rl->rl_phys->rlp_num_entries - 1;
1678 err = dmu_read(mos, rl->rl_object, mididx * sizeof (rbp),
1701 err = dmu_read(mos, rl->rl_object, start_block * bufsize, bufsize, buf,
1705 err == 0 && curidx < rl->rl_phys->rlp_num_entries;
1715 err = dmu_read(mos, rl->rl_object, curidx *