Page MenuHomeFreeBSD

replace blist_fill with list_alloc_all
AbandonedPublic

Authored by dougm on Sep 26 2017, 10:17 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 22 2023, 11:00 PM
Unknown Object (File)
Dec 13 2023, 3:56 AM
Unknown Object (File)
Nov 29 2023, 11:51 PM
Unknown Object (File)
May 29 2023, 12:56 PM
Unknown Object (File)
May 18 2023, 9:52 PM
Unknown Object (File)
May 18 2023, 9:44 PM
Subscribers
None

Details

Reviewers
None
Summary

The only use of blist_fill is one that uses it to allocate all the free blocks at once. This can be implemented trivially, and quickly, by accessing only the root node. Define blist_alloc_all to do that, and discard blist_fill. Use blist_alloc_all in place of blist_fill.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

dougm added a reviewer: alc.

Add an alloc-all option to the test program.

Correct update of swap_pager_avail.

dougm removed a reviewer: alc.