Lines Matching refs:dva

4477 metaslab_is_unique(metaslab_t *msp, dva_t *dva)  in metaslab_is_unique()  argument
4481 if (DVA_GET_ASIZE(dva) == 0) in metaslab_is_unique()
4484 if (msp->ms_group->mg_vd->vdev_id != DVA_GET_VDEV(dva)) in metaslab_is_unique()
4487 dva_ms_id = DVA_GET_OFFSET(dva) >> msp->ms_group->mg_vd->vdev_ms_shift; in metaslab_is_unique()
4635 const dva_t *dva = bp->blk_dva; in metaslab_group_alloc_verify() local
4639 uint64_t vdev = DVA_GET_VDEV(&dva[d]); in metaslab_group_alloc_verify()
4702 dva_t *dva, int d, boolean_t want_unique, uint64_t asize, int allocator, in find_valid_metaslab() argument
4748 !metaslab_is_unique(msp, &dva[i])) in find_valid_metaslab()
4801 uint64_t asize, uint64_t txg, boolean_t want_unique, dva_t *dva, int d, in metaslab_group_alloc_normal() argument
4810 DVA_GET_VDEV(&dva[i]) == mg->mg_vd->vdev_id) { in metaslab_group_alloc_normal()
4813 DVA_GET_VDEV(&dva[i]) == mg->mg_vd->vdev_id) { in metaslab_group_alloc_normal()
4877 msp = find_valid_metaslab(mg, activation_weight, dva, d, in metaslab_group_alloc_normal()
5107 uint64_t asize, uint64_t txg, boolean_t want_unique, dva_t *dva, int d, in metaslab_group_alloc() argument
5113 dva, d, allocator, try_hard); in metaslab_group_alloc()
5145 dva_t *dva, int d, dva_t *hintdva, uint64_t txg, int flags, in metaslab_alloc_dva() argument
5153 ASSERT(!DVA_IS_VALID(&dva[d])); in metaslab_alloc_dva()
5210 vd = vdev_lookup_top(spa, DVA_GET_VDEV(&dva[d - 1])); in metaslab_alloc_dva()
5285 !try_hard, dva, d, allocator, try_hard); in metaslab_alloc_dva()
5341 DVA_SET_VDEV(&dva[d], vd->vdev_id); in metaslab_alloc_dva()
5342 DVA_SET_OFFSET(&dva[d], offset); in metaslab_alloc_dva()
5343 DVA_SET_GANG(&dva[d], in metaslab_alloc_dva()
5345 DVA_SET_ASIZE(&dva[d], asize); in metaslab_alloc_dva()
5365 memset(&dva[d], 0, sizeof (dva_t)); in metaslab_alloc_dva()
5558 dva_t *dva = &bp->blk_dva[0]; in spa_remap_blkptr() local
5560 uint64_t offset = DVA_GET_OFFSET(dva); in spa_remap_blkptr()
5561 uint64_t size = DVA_GET_ASIZE(dva); in spa_remap_blkptr()
5562 vdev_t *vd = vdev_lookup_top(spa, DVA_GET_VDEV(dva)); in spa_remap_blkptr()
5593 metaslab_unalloc_dva(spa_t *spa, const dva_t *dva, uint64_t txg) in metaslab_unalloc_dva() argument
5597 uint64_t vdev = DVA_GET_VDEV(dva); in metaslab_unalloc_dva()
5598 uint64_t offset = DVA_GET_OFFSET(dva); in metaslab_unalloc_dva()
5599 uint64_t size = DVA_GET_ASIZE(dva); in metaslab_unalloc_dva()
5601 ASSERT(DVA_IS_VALID(dva)); in metaslab_unalloc_dva()
5607 if ((vd = vdev_lookup_top(spa, vdev)) == NULL || !DVA_IS_VALID(dva) || in metaslab_unalloc_dva()
5620 if (DVA_GET_GANG(dva)) in metaslab_unalloc_dva()
5645 metaslab_free_dva(spa_t *spa, const dva_t *dva, boolean_t checkpoint) in metaslab_free_dva() argument
5647 uint64_t vdev = DVA_GET_VDEV(dva); in metaslab_free_dva()
5648 uint64_t offset = DVA_GET_OFFSET(dva); in metaslab_free_dva()
5649 uint64_t size = DVA_GET_ASIZE(dva); in metaslab_free_dva()
5652 ASSERT(DVA_IS_VALID(dva)); in metaslab_free_dva()
5655 if (DVA_GET_GANG(dva)) { in metaslab_free_dva()
5824 metaslab_claim_dva(spa_t *spa, const dva_t *dva, uint64_t txg) in metaslab_claim_dva() argument
5826 uint64_t vdev = DVA_GET_VDEV(dva); in metaslab_claim_dva()
5827 uint64_t offset = DVA_GET_OFFSET(dva); in metaslab_claim_dva()
5828 uint64_t size = DVA_GET_ASIZE(dva); in metaslab_claim_dva()
5835 ASSERT(DVA_IS_VALID(dva)); in metaslab_claim_dva()
5837 if (DVA_GET_GANG(dva)) in metaslab_claim_dva()
5848 dva_t *dva = bp->blk_dva; in metaslab_alloc() local
5869 error = metaslab_alloc_dva(spa, mc, psize, dva, d, hintdva, in metaslab_alloc()
5873 metaslab_unalloc_dva(spa, &dva[d], txg); in metaslab_alloc()
5875 DVA_GET_VDEV(&dva[d]), zio, flags, in metaslab_alloc()
5877 memset(&dva[d], 0, sizeof (dva_t)); in metaslab_alloc()
5887 DVA_GET_VDEV(&dva[d]), zio, flags, allocator); in metaslab_alloc()
5903 const dva_t *dva = bp->blk_dva; in metaslab_free() local
5940 metaslab_unalloc_dva(spa, &dva[d], txg); in metaslab_free()
5943 metaslab_free_dva(spa, &dva[d], checkpoint); in metaslab_free()
5953 const dva_t *dva = bp->blk_dva; in metaslab_claim() local
5971 error = metaslab_claim_dva(spa, &dva[d], txg); in metaslab_claim()