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.
Add a cache of chunks of the index, at the BlockBasedLogWithSummary layer. The big win here is being able to determine that a block is NOT in the cache without reading from disk. This is needed primarily when ingesting newly-written blocks, and when doing sibling block ingestion. In both of these cases, we have to check if the blocks are already present, but we are checking many adjacent BlockId's, whose entries would fall in the same chunk of the index. The cache also eliminates the need for the last_entry special case.
- Loading branch information
Showing
2 changed files
with
61 additions
and
42 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