ARGSUSED */
| 862 | |
| 863 | /* ARGSUSED */ |
| 864 | static int |
| 865 | space_range_cb(void *arg, const blkptr_t *bp, boolean_t bp_freed, dmu_tx_t *tx) |
| 866 | { |
| 867 | struct space_range_arg *sra = arg; |
| 868 | |
| 869 | if (bp->blk_birth > sra->mintxg && bp->blk_birth <= sra->maxtxg) { |
| 870 | if (dsl_pool_sync_context(spa_get_dsl(sra->spa))) |
| 871 | sra->used += bp_get_dsize_sync(sra->spa, bp); |
| 872 | else |
| 873 | sra->used += bp_get_dsize(sra->spa, bp); |
| 874 | sra->comp += BP_GET_PSIZE(bp); |
| 875 | sra->uncomp += BP_GET_UCSIZE(bp); |
| 876 | } |
| 877 | return (0); |
| 878 | } |
| 879 | |
| 880 | int |
| 881 | bpobj_space(bpobj_t *bpo, uint64_t *usedp, uint64_t *compp, uint64_t *uncompp) |
nothing calls this directly
no test coverage detected