HomeFreeBSD

swap_pager: examine swblks with pctrie iterators

Description

swap_pager: examine swblks with pctrie iterators

Replace calls to pctrie lookup and remove functions, which always
begin with a search from the pctrie root, with the use of pctrie
iterators to traverse and remove items from the pctrie of swapblks
without duplicating searches. Take care to reset iterators after
reacquiring an object lock, since with the lock released they could be
invalidated.

Reviewed by: alc, markj, kib
Tested by: pho (previous versions)
Differential Revision: https://reviews.freebsd.org/D46620

Details

Provenance
dougmAuthored on Sep 29 2024, 4:38 PM
Reviewer
alc
Differential Revision
D46620: swap_pager: use pctrie iterators
Parents
rG33ed9bdca307: igc: Add NVM/firmware prints and sysctl
Branches
Unknown
Tags
Unknown