MCPcopy Create free account
hub / github.com/F-Stack/f-stack / vdev_deflated_space

Function vdev_deflated_space

freebsd/contrib/openzfs/module/zfs/vdev.c:4509–4516  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4507}
4508
4509int64_t
4510vdev_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,

Callers 2

metaslab_space_updateFunction · 0.85
vdev_space_updateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected