Lines Matching defs:asize
3245 metaslab_should_allocate(metaslab_t *msp, uint64_t asize, boolean_t try_hard)
3266 return (msp->ms_max_size >= asize);
3273 * Since the asize might be in the middle of the range, we
3274 * should attempt the allocation if asize < 2^(i+1).
3276 should_allocate = (asize <
3279 should_allocate = (asize <=
4702 dva_t *dva, int d, boolean_t want_unique, uint64_t asize, int allocator,
4722 if (!metaslab_should_allocate(msp, asize, try_hard)) {
4723 metaslab_trace_add(zal, mg, msp, asize, d,
4801 uint64_t asize, uint64_t txg, boolean_t want_unique, dva_t *dva, int d,
4878 want_unique, asize, allocator, try_hard, zal,
4986 if (!metaslab_should_allocate(msp, asize, try_hard)) {
4988 metaslab_trace_add(zal, mg, msp, asize, d,
5001 metaslab_trace_add(zal, mg, msp, asize, d,
5010 metaslab_trace_add(zal, mg, msp, asize, d,
5020 offset = metaslab_block_alloc(msp, asize, txg);
5021 metaslab_trace_add(zal, mg, msp, asize, d, offset, allocator);
5038 uint64_t, asize);
5096 ASSERT(!metaslab_should_allocate(msp, asize, try_hard));
5107 uint64_t asize, uint64_t txg, boolean_t want_unique, dva_t *dva, int d,
5112 offset = metaslab_group_alloc_normal(mg, zal, asize, txg, want_unique,
5118 metaslab_trace_add(zal, mg, NULL, asize, d,
5120 if (asize == SPA_GANGBLOCKSIZE) {
5275 uint64_t asize = vdev_psize_to_asize_txg(vd, psize, txg);
5276 ASSERT(P2PHASE(asize, 1ULL << vd->vdev_ashift) == 0);
5284 uint64_t offset = metaslab_group_alloc(mg, zal, asize, txg,
5335 atomic_add_64_nv(&mca->mca_aliquot, asize) >=
5345 DVA_SET_ASIZE(&dva[d], asize);
5372 metaslab_free_concrete(vdev_t *vd, uint64_t offset, uint64_t asize,
5386 VERIFY3U(offset + asize, <=, msp->ms_start + msp->ms_size);
5388 VERIFY0(P2PHASE(asize, 1ULL << vd->vdev_ashift));
5390 metaslab_check_free_impl(vd, offset, asize);
5400 range_tree_add(msp->ms_checkpointing, offset, asize);
5402 range_tree_add(msp->ms_freeing, offset, asize);