Page MenuHomeFreeBSD

swap_pager: add new page range struct
ClosedPublic

Authored by dougm on Jun 11 2024, 6:02 PM.
Tags
None
Referenced Files
F166084248: D45562.diff
Tue, Aug 11, 2:48 PM
Unknown Object (File)
Mon, Aug 10, 5:02 PM
Unknown Object (File)
Sat, Aug 8, 5:38 PM
Unknown Object (File)
Sat, Aug 8, 4:25 PM
Unknown Object (File)
Sat, Aug 8, 8:41 AM
Unknown Object (File)
Fri, Aug 7, 10:17 PM
Unknown Object (File)
Thu, Aug 6, 8:34 AM
Unknown Object (File)
Thu, Aug 6, 5:08 AM
Subscribers

Details

Summary

Define a page_range struct to pair up the two values passed to
freerange functions. Have swp_pager_freeswapspace also take a
page_range argument rather than a pair of arguments.

In swp_pager_meta_free_all, drop a needless test and use a new
helper function to do the cleanup for each swap block.

I expect the new helper function to be essential for a future change
to swp_pager_meta_free_all, as a callback function.

Test Plan

I've built and booted a kernel with this change.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dougm requested review of this revision.Jun 11 2024, 6:02 PM
dougm created this revision.
This revision is now accepted and ready to land.Jun 12 2024, 3:48 AM
This revision was automatically updated to reflect the committed changes.