-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The largest btree elements used by ZFS are 24 bytes in size and majority of them are 8 or 16 bytes. Allocate temporary elements on the stack instead of using kernel memory allocator. Add an assert and a comment in case we would like to have larger elements in the future and allocating them on the stack may stop being a good idea. Signed-off-by: Pawel Jakub Dawidek <[email protected]>
- Loading branch information
Showing
1 changed file
with
15 additions
and
9 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