vdev_removal.c (332554) | vdev_removal.c (339105) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 793 unchanged lines hidden (view full) --- 802 vdev_indirect_mapping_entry_t *entry; 803 vdev_copy_seg_arg_t *private; 804 dva_t dst = { 0 }; 805 blkptr_t blk, *bp = &blk; 806 dva_t *dva = bp->blk_dva; 807 808 ASSERT3U(size, <=, SPA_MAXBLOCKSIZE); 809 | 1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 793 unchanged lines hidden (view full) --- 802 vdev_indirect_mapping_entry_t *entry; 803 vdev_copy_seg_arg_t *private; 804 dva_t dst = { 0 }; 805 blkptr_t blk, *bp = &blk; 806 dva_t *dva = bp->blk_dva; 807 808 ASSERT3U(size, <=, SPA_MAXBLOCKSIZE); 809 |
810 /* 811 * We use allocator 0 for this I/O because we don't expect device remap 812 * to be the steady state of the system, so parallelizing is not as 813 * critical as it is for other allocation types. We also want to ensure 814 * that the IOs are allocated together as much as possible, to reduce 815 * mapping sizes. 816 */ |
|
810 int error = metaslab_alloc_dva(spa, mg->mg_class, size, | 817 int error = metaslab_alloc_dva(spa, mg->mg_class, size, |
811 &dst, 0, NULL, txg, 0, zal); | 818 &dst, 0, NULL, txg, 0, zal, 0); |
812 if (error != 0) 813 return (error); 814 815 /* 816 * We can't have any padding of the allocated size, otherwise we will 817 * misunderstand what's allocated, and the size of the mapping. 818 * The caller ensures this will be true by passing in a size that is 819 * aligned to the worst (highest) ashift in the pool. --- 1137 unchanged lines hidden --- | 819 if (error != 0) 820 return (error); 821 822 /* 823 * We can't have any padding of the allocated size, otherwise we will 824 * misunderstand what's allocated, and the size of the mapping. 825 * The caller ensures this will be true by passing in a size that is 826 * aligned to the worst (highest) ashift in the pool. --- 1137 unchanged lines hidden --- |