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)
Thu, Jan 8, 6:45 AM
Unknown Object (File)
Tue, Jan 6, 4:35 PM
Unknown Object (File)
Tue, Jan 6, 1:39 AM
Unknown Object (File)
Wed, Dec 31, 11:10 AM
Unknown Object (File)
Dec 10 2025, 12:23 AM
Unknown Object (File)
Dec 8 2025, 12:24 AM
Unknown Object (File)
Nov 28 2025, 3:39 PM
Unknown Object (File)
Nov 25 2025, 2:37 PM

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