Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix long_free_dirty accounting for small files
For files smaller than recordsize, it's most likely that they don't have L1 blocks. However, current calculation will always return at least 1 L1 block. In this change, we check dnode level to figure out if it has L1 blocks or not, and return 0 if it doesn't. This will reduce the chance of unnecessary throttling when deleting a large number of small files. Signed-off-by: Chunwei Chen <[email protected]>
- Loading branch information