HomeFreeBSD

Freeing throttle should account for holes

Description

Freeing throttle should account for holes

Deletion throttle currently does not account for holes in a file.
This means that it can activate when it shouldn't.
To fix it we switch the throttle to be based on the number of
L1 blocks we will have to dirty when freeing

Reviewed by: Tom Caputi <tcaputi@datto.com>
Reviewed by: Matt Ahrens <mahrens@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Alek Pinchuk <apinchuk@datto.com>
Closes #7725
Closes #7888

Details

Provenance
Alek P <alek-p@users.noreply.github.com>Authored on Feb 12 2019, 8:01 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Feb 12 2019, 8:01 PM
Parents
rGdcec0a12c8e4: port async unlinked drain from illumos-nexenta
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG65282ee9e06b: Freeing throttle should account for holes (authored by Alek P <alek-p@users.noreply.github.com>).Feb 12 2019, 8:01 PM