forked from openzfs/zfs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix calculations for target cache size in try_start_merge_task() (ope…
…nzfs#35) The calculations done by try_start_merge_task() to determine if we should start a merge, and potentially trigger evictions, currently uses the block access object to determine the total size of the cache. This is incorrect, as that size includes the amount of space reserved for various forms of metadata used by the cache. What we actually want to use, is the total size available to the block allocator object, as that correctly excludes all the space reserved for cache metadata.
- Loading branch information
Prakash Surya
authored
Nov 30, 2021
1 parent
b219e2e
commit e0b3fc8
Showing
2 changed files
with
9 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters