| 4507 | } |
| 4508 | |
| 4509 | int64_t |
| 4510 | vdev_deflated_space(vdev_t *vd, int64_t space) |
| 4511 | { |
| 4512 | ASSERT((space & (SPA_MINBLOCKSIZE-1)) == 0); |
| 4513 | ASSERT(vd->vdev_deflate_ratio != 0 || vd->vdev_isl2cache); |
| 4514 | |
| 4515 | return ((space >> SPA_MINBLOCKSHIFT) * vd->vdev_deflate_ratio); |
| 4516 | } |
| 4517 | |
| 4518 | /* |
| 4519 | * Update the in-core space usage stats for this vdev, its metaslab class, |
no outgoing calls
no test coverage detected