]> git.proxmox.com Git - mirror_zfs.git/commit
Freeing throttle should account for holes
authorAlek P <alek-p@users.noreply.github.com>
Tue, 12 Feb 2019 20:01:08 +0000 (12:01 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 12 Feb 2019 20:01:08 +0000 (12:01 -0800)
commit65282ee9e06b130f1f0169baf5d9bf0dd8fc1ef9
treed2947cf6d10dae5bf14792964cdae8bf6552ea02
parentdcec0a12c8e480262288ac76f6350652079ea173
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
man/man5/zfs-module-parameters.5
module/zfs/dmu.c