Lines Matching refs:allocator
1228 int flags, uint64_t psize, int allocator, int d) in metaslab_group_allocatable() argument
1258 metaslab_group_allocator_t *mga = &mg->mg_allocator[allocator]; in metaslab_group_allocatable()
1309 &mgp->mg_allocator[allocator]; in metaslab_group_allocatable()
1684 spa_set_allocator(spa_t *spa, const char *allocator) in spa_set_allocator() argument
1686 int a = spa_find_allocator_byname(allocator); in spa_set_allocator()
1722 int allocator = spa_get_allocator(spa); in metaslab_allocator() local
1723 return (&metaslab_allocators[allocator]); in metaslab_allocator()
3359 int allocator, uint64_t activation_weight) in metaslab_activate_allocator() argument
3361 metaslab_group_allocator_t *mga = &mg->mg_allocator[allocator]; in metaslab_activate_allocator()
3387 msp->ms_allocator = allocator; in metaslab_activate_allocator()
3400 metaslab_activate(metaslab_t *msp, int allocator, uint64_t activation_weight) in metaslab_activate() argument
3442 if (msp->ms_allocator != allocator) in metaslab_activate()
3466 allocator, activation_weight)) != 0) { in metaslab_activate()
4525 int allocator) in metaslab_trace_add() argument
4559 mat->mat_allocator = allocator; in metaslab_trace_add()
4601 int flags, int allocator) in metaslab_group_alloc_increment() argument
4611 metaslab_group_allocator_t *mga = &mg->mg_allocator[allocator]; in metaslab_group_alloc_increment()
4616 metaslab_group_increment_qdepth(metaslab_group_t *mg, int allocator) in metaslab_group_increment_qdepth() argument
4618 metaslab_group_allocator_t *mga = &mg->mg_allocator[allocator]; in metaslab_group_increment_qdepth()
4620 &mg->mg_class->mc_allocator[allocator]; in metaslab_group_increment_qdepth()
4635 int flags, int allocator, boolean_t io_complete) in metaslab_group_alloc_decrement() argument
4645 metaslab_group_allocator_t *mga = &mg->mg_allocator[allocator]; in metaslab_group_alloc_decrement()
4648 metaslab_group_increment_qdepth(mg, allocator); in metaslab_group_alloc_decrement()
4653 int allocator) in metaslab_group_alloc_verify() argument
4662 metaslab_group_allocator_t *mga = &mg->mg_allocator[allocator]; in metaslab_group_alloc_verify()
4724 dva_t *dva, int d, boolean_t want_unique, uint64_t asize, int allocator, in find_valid_metaslab() argument
4746 TRACE_TOO_SMALL, allocator); in find_valid_metaslab()
4824 int allocator, boolean_t try_hard) in metaslab_group_alloc_normal() argument
4846 allocator = 0; in metaslab_group_alloc_normal()
4847 metaslab_group_allocator_t *mga = &mg->mg_allocator[allocator]; in metaslab_group_alloc_normal()
4879 ASSERT3S(msp->ms_allocator, ==, allocator); in metaslab_group_alloc_normal()
4893 ASSERT3S(msp->ms_allocator, ==, allocator); in metaslab_group_alloc_normal()
4900 want_unique, asize, allocator, try_hard, zal, in metaslab_group_alloc_normal()
4945 (msp->ms_allocator != allocator || ((activation_weight == in metaslab_group_alloc_normal()
4974 metaslab_activate(msp, allocator, activation_weight); in metaslab_group_alloc_normal()
5011 TRACE_TOO_SMALL, allocator); in metaslab_group_alloc_normal()
5024 TRACE_CONDENSING, allocator); in metaslab_group_alloc_normal()
5033 TRACE_DISABLED, allocator); in metaslab_group_alloc_normal()
5043 metaslab_trace_add(zal, mg, msp, asize, d, offset, allocator); in metaslab_group_alloc_normal()
5130 int allocator, boolean_t try_hard) in metaslab_group_alloc() argument
5135 dva, d, allocator, try_hard); in metaslab_group_alloc()
5141 TRACE_GROUP_FAILURE, allocator); in metaslab_group_alloc()
5168 zio_alloc_list_t *zal, int allocator) in metaslab_alloc_dva() argument
5170 metaslab_class_allocator_t *mca = &mc->mc_allocator[allocator]; in metaslab_alloc_dva()
5188 allocator); in metaslab_alloc_dva()
5274 flags, psize, allocator, d); in metaslab_alloc_dva()
5279 TRACE_NOT_ALLOCATABLE, allocator); in metaslab_alloc_dva()
5291 TRACE_VDEV_ERROR, allocator); in metaslab_alloc_dva()
5307 !try_hard, dva, d, allocator, try_hard); in metaslab_alloc_dva()
5389 metaslab_trace_add(zal, rotor, NULL, psize, d, TRACE_ENOSPC, allocator); in metaslab_alloc_dva()
5692 metaslab_class_throttle_reserve(metaslab_class_t *mc, int slots, int allocator, in metaslab_class_throttle_reserve() argument
5695 metaslab_class_allocator_t *mca = &mc->mc_allocator[allocator]; in metaslab_class_throttle_reserve()
5721 int allocator, zio_t *zio) in metaslab_class_throttle_unreserve() argument
5723 metaslab_class_allocator_t *mca = &mc->mc_allocator[allocator]; in metaslab_class_throttle_unreserve()
5868 zio_alloc_list_t *zal, zio_t *zio, int allocator) in metaslab_alloc() argument
5879 if (mc->mc_allocator[allocator].mca_rotor == NULL) { in metaslab_alloc()
5892 txg, flags, zal, allocator); in metaslab_alloc()
5898 allocator, B_FALSE); in metaslab_alloc()
5909 DVA_GET_VDEV(&dva[d]), zio, flags, allocator); in metaslab_alloc()