Page MenuHomeFreeBSD

vm_object: Modify various drivers to allocate OBJT_SWAP objects
ClosedPublic

Authored by markj on Jul 11 2022, 11:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 4, 9:11 PM
Unknown Object (File)
Oct 17 2025, 6:43 AM
Unknown Object (File)
Oct 10 2025, 8:30 PM
Unknown Object (File)
Oct 10 2025, 8:30 PM
Unknown Object (File)
Oct 10 2025, 8:30 PM
Unknown Object (File)
Oct 10 2025, 3:03 PM
Unknown Object (File)
Sep 15 2025, 9:03 AM
Unknown Object (File)
Sep 9 2025, 9:43 AM

Details

Summary

This is in preparation for removal of OBJT_DEFAULT. In particular, it
is cheap to check whether an OBJT_SWAP object has any swap blocks
allocated, so the benefit of having a separate OBJT_DEFAULT type is
quite marginal, and the OBJT_DEFAULT->SWAP transition is a source of
bugs.

Diff Detail

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