Lines Matching refs:bpl
31 bplist_create(bplist_t *bpl)
33 mutex_init(&bpl->bpl_lock, NULL, MUTEX_DEFAULT, NULL);
34 list_create(&bpl->bpl_list, sizeof (bplist_entry_t),
39 bplist_destroy(bplist_t *bpl)
41 list_destroy(&bpl->bpl_list);
42 mutex_destroy(&bpl->bpl_lock);
46 bplist_append(bplist_t *bpl, const blkptr_t *bp)
50 mutex_enter(&bpl->bpl_lock);
52 list_insert_tail(&bpl->bpl_list, bpe);
53 mutex_exit(&bpl->bpl_lock);
63 bplist_iterate(bplist_t *bpl, bplist_itor_t *func, void *arg, dmu_tx_t *tx)
67 mutex_enter(&bpl->bpl_lock);
68 while (bpe = list_head(&bpl->bpl_list)) {
70 list_remove(&bpl->bpl_list, bpe);
71 mutex_exit(&bpl->bpl_lock);
74 mutex_enter(&bpl->bpl_lock);
76 mutex_exit(&bpl->bpl_lock);