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.
misc zettacache cleanup (openzfs#491)
SlabTrait: mark_slab_info() instead of phys_type() This allows the specific slab (Bitmap, Evacuating, etc) to directly access the SpaceMap, potentially writing several entries to it. Helper methods on `struct Slab` should return whatever the SlabTrait method returns. BlockAllocatorBuilder & Slabs::open(): separate claiming of the BlockAllocator's slabs from creation of the Builder. Tweak logging messages, add some details to assertion failures and errors. Slight refactoring of code in summarized.rs, merge.rs SpaceMapEntry::SlabInfo can be a 2-tuple rather than 1-tuple of struct with 2 members. In this case the member names don't add anything to comprehension, they just echo the type names. Since this is serialized with bincode, the on-disk representation is the same. Use lock_non_send where possible
- Loading branch information
Showing
11 changed files
with
122 additions
and
119 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
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
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
Oops, something went wrong.