Lines Matching refs:allocator

1174     uint64_t psize, int allocator, int d)  in metaslab_group_allocatable()  argument
1206 uint64_t qmax = mg->mg_cur_max_alloc_queue_depth[allocator]; in metaslab_group_allocatable()
1226 &mg->mg_alloc_queue_depth[allocator]); in metaslab_group_allocatable()
1245 qmax = mgp->mg_cur_max_alloc_queue_depth[allocator]; in metaslab_group_allocatable()
1248 &mgp->mg_alloc_queue_depth[allocator]); in metaslab_group_allocatable()
3170 int allocator, uint64_t activation_weight) in metaslab_activate_allocator() argument
3190 if (arr[allocator] != NULL) { in metaslab_activate_allocator()
3195 arr[allocator] = msp; in metaslab_activate_allocator()
3197 msp->ms_allocator = allocator; in metaslab_activate_allocator()
3211 metaslab_activate(metaslab_t *msp, int allocator, uint64_t activation_weight) in metaslab_activate() argument
3253 if (msp->ms_allocator != allocator) in metaslab_activate()
3277 allocator, activation_weight)) != 0) { in metaslab_activate()
4376 int allocator) in metaslab_trace_add() argument
4409 mat->mat_allocator = allocator; in metaslab_trace_add()
4451 int allocator) in metaslab_group_alloc_increment() argument
4461 (void) zfs_refcount_add(&mg->mg_alloc_queue_depth[allocator], tag); in metaslab_group_alloc_increment()
4465 metaslab_group_increment_qdepth(metaslab_group_t *mg, int allocator) in metaslab_group_increment_qdepth() argument
4468 uint64_t cur = mg->mg_cur_max_alloc_queue_depth[allocator]; in metaslab_group_increment_qdepth()
4470 if (atomic_cas_64(&mg->mg_cur_max_alloc_queue_depth[allocator], in metaslab_group_increment_qdepth()
4473 &mg->mg_class->mc_alloc_max_slots[allocator]); in metaslab_group_increment_qdepth()
4476 cur = mg->mg_cur_max_alloc_queue_depth[allocator]; in metaslab_group_increment_qdepth()
4482 int allocator, boolean_t io_complete) in metaslab_group_alloc_decrement() argument
4492 (void) zfs_refcount_remove(&mg->mg_alloc_queue_depth[allocator], tag); in metaslab_group_alloc_decrement()
4494 metaslab_group_increment_qdepth(mg, allocator); in metaslab_group_alloc_decrement()
4499 int allocator) in metaslab_group_alloc_verify() argument
4509 &mg->mg_alloc_queue_depth[allocator], tag)); in metaslab_group_alloc_verify()
4568 dva_t *dva, int d, boolean_t want_unique, uint64_t asize, int allocator, in find_valid_metaslab() argument
4582 TRACE_TOO_SMALL, allocator); in find_valid_metaslab()
4661 int allocator, boolean_t try_hard) in metaslab_group_alloc_normal() argument
4683 allocator = 0; in metaslab_group_alloc_normal()
4705 mg->mg_primaries[allocator] != NULL) { in metaslab_group_alloc_normal()
4706 msp = mg->mg_primaries[allocator]; in metaslab_group_alloc_normal()
4715 ASSERT3S(msp->ms_allocator, ==, allocator); in metaslab_group_alloc_normal()
4721 mg->mg_secondaries[allocator] != NULL) { in metaslab_group_alloc_normal()
4722 msp = mg->mg_secondaries[allocator]; in metaslab_group_alloc_normal()
4729 ASSERT3S(msp->ms_allocator, ==, allocator); in metaslab_group_alloc_normal()
4736 want_unique, asize, allocator, try_hard, zal, in metaslab_group_alloc_normal()
4781 (msp->ms_allocator != allocator || ((activation_weight == in metaslab_group_alloc_normal()
4810 metaslab_activate(msp, allocator, activation_weight); in metaslab_group_alloc_normal()
4847 TRACE_TOO_SMALL, allocator); in metaslab_group_alloc_normal()
4860 TRACE_CONDENSING, allocator); in metaslab_group_alloc_normal()
4869 TRACE_DISABLED, allocator); in metaslab_group_alloc_normal()
4879 metaslab_trace_add(zal, mg, msp, asize, d, offset, allocator); in metaslab_group_alloc_normal()
4966 int allocator, boolean_t try_hard) in metaslab_group_alloc() argument
4972 dva, d, allocator, try_hard); in metaslab_group_alloc()
4978 TRACE_GROUP_FAILURE, allocator); in metaslab_group_alloc()
5005 zio_alloc_list_t *zal, int allocator) in metaslab_alloc_dva() argument
5019 allocator); in metaslab_alloc_dva()
5106 psize, allocator, d); in metaslab_alloc_dva()
5111 TRACE_NOT_ALLOCATABLE, allocator); in metaslab_alloc_dva()
5126 TRACE_VDEV_ERROR, allocator); in metaslab_alloc_dva()
5142 !try_hard, dva, d, allocator, try_hard); in metaslab_alloc_dva()
5205 metaslab_trace_add(zal, rotor, NULL, psize, d, TRACE_ENOSPC, allocator); in metaslab_alloc_dva()
5507 metaslab_class_throttle_reserve(metaslab_class_t *mc, int slots, int allocator, in metaslab_class_throttle_reserve() argument
5512 uint64_t max = mc->mc_alloc_max_slots[allocator]; in metaslab_class_throttle_reserve()
5518 zfs_refcount_count(&mc->mc_alloc_slots[allocator]); in metaslab_class_throttle_reserve()
5528 zfs_refcount_add_few(&mc->mc_alloc_slots[allocator], slots, in metaslab_class_throttle_reserve()
5540 int allocator, zio_t *zio) in metaslab_class_throttle_unreserve() argument
5544 zfs_refcount_remove_few(&mc->mc_alloc_slots[allocator], slots, zio); in metaslab_class_throttle_unreserve()
5687 zio_alloc_list_t *zal, zio_t *zio, int allocator) in metaslab_alloc() argument
5710 txg, flags, zal, allocator); in metaslab_alloc()
5716 allocator, B_FALSE); in metaslab_alloc()
5727 DVA_GET_VDEV(&dva[d]), zio, flags, allocator); in metaslab_alloc()