Lines Matching refs:bpo_phys
110 if (!bpo.bpo_havesubobj || bpo.bpo_phys->bpo_subobjs == 0) in bpobj_free()
113 VERIFY3U(0, ==, dmu_object_info(os, bpo.bpo_phys->bpo_subobjs, &doi)); in bpobj_free()
116 for (i = bpo.bpo_phys->bpo_num_subobjs - 1; i >= 0; i--) { in bpobj_free()
127 bpo.bpo_phys->bpo_subobjs, offset, FTAG, &dbuf, 0)); in bpobj_free()
140 VERIFY3U(0, ==, dmu_object_free(os, bpo.bpo_phys->bpo_subobjs, tx)); in bpobj_free()
163 ASSERT(bpo->bpo_phys == NULL); in bpobj_open()
178 bpo->bpo_phys = bpo->bpo_dbuf->db_data; in bpobj_open()
199 bpo->bpo_phys = NULL; in bpobj_close()
210 return (bpo->bpo_phys->bpo_num_blkptrs == 0 && in bpobj_is_empty_impl()
211 (!bpo->bpo_havesubobj || bpo->bpo_phys->bpo_num_subobjs == 0)); in bpobj_is_empty_impl()
252 if (bpo->bpo_havesubobj && bpo->bpo_phys->bpo_subobjs != 0) { in bpi_alloc()
253 bpi->bpi_unprocessed_subobjs = bpo->bpo_phys->bpo_num_subobjs; in bpi_alloc()
269 p->bpo_phys->bpo_bytes -= freed; in propagate_space_reduction()
270 ASSERT3S(p->bpo_phys->bpo_bytes, >=, 0); in propagate_space_reduction()
272 p->bpo_phys->bpo_comp -= comp_freed; in propagate_space_reduction()
273 p->bpo_phys->bpo_uncomp -= uncomp_freed; in propagate_space_reduction()
287 int64_t i = bpo->bpo_phys->bpo_num_blkptrs - 1; in bpobj_iterate_blkptrs()
335 bpo->bpo_phys->bpo_num_blkptrs--; in bpobj_iterate_blkptrs()
336 ASSERT3S(bpo->bpo_phys->bpo_num_blkptrs, >=, 0); in bpobj_iterate_blkptrs()
339 bpo->bpo_phys->bpo_num_freed--; in bpobj_iterate_blkptrs()
340 ASSERT3S(bpo->bpo_phys->bpo_num_freed, >=, 0); in bpobj_iterate_blkptrs()
349 bpo->bpo_phys->bpo_num_blkptrs * sizeof (blkptr_t), in bpobj_iterate_blkptrs()
385 *bpobj_size = initial_bpo->bpo_phys->bpo_num_blkptrs; in bpobj_iterate_impl()
418 ASSERT0(bpo->bpo_phys->bpo_bytes); in bpobj_iterate_impl()
419 ASSERT0(bpo->bpo_phys->bpo_comp); in bpobj_iterate_impl()
420 ASSERT0(bpo->bpo_phys->bpo_uncomp); in bpobj_iterate_impl()
428 ASSERT0(bpo->bpo_phys->bpo_num_blkptrs); in bpobj_iterate_impl()
429 ASSERT3U(p->bpo_phys->bpo_num_subobjs, in bpobj_iterate_impl()
432 p->bpo_phys->bpo_num_subobjs - 1); in bpobj_iterate_impl()
436 p->bpo_phys->bpo_num_subobjs--; in bpobj_iterate_impl()
439 p->bpo_phys->bpo_subobjs, in bpobj_iterate_impl()
445 bpo->bpo_phys->bpo_subobjs != 0) { in bpobj_iterate_impl()
446 ASSERT0(bpo->bpo_phys-> in bpobj_iterate_impl()
450 bpo->bpo_phys->bpo_subobjs, in bpobj_iterate_impl()
454 bpo->bpo_phys->bpo_subobjs = 0; in bpobj_iterate_impl()
487 err = dmu_read(bpo->bpo_os, bpo->bpo_phys->bpo_subobjs, in bpobj_iterate_impl()
502 subbpo->bpo_phys->bpo_subobjs != 0) { in bpobj_iterate_impl()
504 subbpo->bpo_phys->bpo_subobjs, 0, 0, 0, in bpobj_iterate_impl()
579 VERIFY0(bpo->bpo_phys->bpo_subobjs); in livelist_bpobj_iterate_from_nofree()
704 if (bpo->bpo_phys->bpo_subobjs != 0) { in bpobj_enqueue_subobj()
705 ASSERT0(dmu_object_info(bpo->bpo_os, bpo->bpo_phys->bpo_subobjs, in bpobj_enqueue_subobj()
715 subsubobjs = subbpo.bpo_phys->bpo_subobjs; in bpobj_enqueue_subobj()
736 uint64_t numsubsub = subbpo.bpo_phys->bpo_num_subobjs; in bpobj_enqueue_subobj()
746 if (bpo->bpo_phys->bpo_subobjs == 0) { in bpobj_enqueue_subobj()
747 bpo->bpo_phys->bpo_subobjs = in bpobj_enqueue_subobj()
752 dmu_write(bpo->bpo_os, bpo->bpo_phys->bpo_subobjs, in bpobj_enqueue_subobj()
753 bpo->bpo_phys->bpo_num_subobjs * sizeof (subobj), in bpobj_enqueue_subobj()
756 bpo->bpo_phys->bpo_num_subobjs += numsubsub; in bpobj_enqueue_subobj()
759 subbpo.bpo_phys->bpo_subobjs = 0; in bpobj_enqueue_subobj()
765 uint64_t numbps = subbpo.bpo_phys->bpo_num_blkptrs; in bpobj_enqueue_subobj()
777 bpo->bpo_phys->bpo_num_blkptrs * sizeof (blkptr_t), in bpobj_enqueue_subobj()
781 bpo->bpo_phys->bpo_num_blkptrs += numbps; in bpobj_enqueue_subobj()
787 if (bpo->bpo_phys->bpo_subobjs == 0) { in bpobj_enqueue_subobj()
788 bpo->bpo_phys->bpo_subobjs = in bpobj_enqueue_subobj()
794 dmu_write(bpo->bpo_os, bpo->bpo_phys->bpo_subobjs, in bpobj_enqueue_subobj()
795 bpo->bpo_phys->bpo_num_subobjs * sizeof (subobj), in bpobj_enqueue_subobj()
797 bpo->bpo_phys->bpo_num_subobjs++; in bpobj_enqueue_subobj()
800 bpo->bpo_phys->bpo_bytes += used; in bpobj_enqueue_subobj()
801 bpo->bpo_phys->bpo_comp += comp; in bpobj_enqueue_subobj()
802 bpo->bpo_phys->bpo_uncomp += uncomp; in bpobj_enqueue_subobj()
831 subsubobjs = subbpo.bpo_phys->bpo_subobjs; in bpobj_prefetch_subobj()
847 if (bpo->bpo_phys->bpo_subobjs) { in bpobj_prefetch_subobj()
848 dmu_prefetch(bpo->bpo_os, bpo->bpo_phys->bpo_subobjs, 0, in bpobj_prefetch_subobj()
849 bpo->bpo_phys->bpo_num_subobjs * sizeof (subobj), 1, in bpobj_prefetch_subobj()
858 bpo->bpo_phys->bpo_num_blkptrs * sizeof (blkptr_t), 1, in bpobj_prefetch_subobj()
862 } else if (bpo->bpo_phys->bpo_subobjs) { in bpobj_prefetch_subobj()
863 dmu_prefetch(bpo->bpo_os, bpo->bpo_phys->bpo_subobjs, 0, in bpobj_prefetch_subobj()
864 bpo->bpo_phys->bpo_num_subobjs * sizeof (subobj), 1, in bpobj_prefetch_subobj()
907 offset = bpo->bpo_phys->bpo_num_blkptrs * sizeof (stored_bp); in bpobj_enqueue()
908 blkoff = P2PHASE(bpo->bpo_phys->bpo_num_blkptrs, bpo->bpo_epb); in bpobj_enqueue()
926 bpo->bpo_phys->bpo_num_blkptrs++; in bpobj_enqueue()
928 bpo->bpo_phys->bpo_bytes += sign * in bpobj_enqueue()
931 bpo->bpo_phys->bpo_comp += sign * BP_GET_PSIZE(bp); in bpobj_enqueue()
932 bpo->bpo_phys->bpo_uncomp += sign * BP_GET_UCSIZE(bp); in bpobj_enqueue()
936 bpo->bpo_phys->bpo_num_freed++; in bpobj_enqueue()
974 *usedp = bpo->bpo_phys->bpo_bytes; in bpobj_space()
976 *compp = bpo->bpo_phys->bpo_comp; in bpobj_space()
977 *uncompp = bpo->bpo_phys->bpo_uncomp; in bpobj_space()