Page MenuHomeFreeBSD

vm: Remove handling for OBJT_DEFAULT objects
ClosedPublic

Authored by markj on Jul 12 2022, 4:22 PM.
Tags
None
Referenced Files
F102651288: D35788.diff
Fri, Nov 15, 8:51 AM
Unknown Object (File)
Sun, Nov 10, 7:16 AM
Unknown Object (File)
Sat, Nov 2, 4:54 AM
Unknown Object (File)
Thu, Oct 31, 10:23 PM
Unknown Object (File)
Sep 30 2024, 10:09 PM
Unknown Object (File)
Sep 24 2024, 2:03 PM
Unknown Object (File)
Sep 17 2024, 3:57 AM
Unknown Object (File)
Sep 17 2024, 2:55 AM
Subscribers

Details

Summary

Now that OBJT_DEFAULT objects can't be instantiated, we can simplify
various checks of the form `object->type == OBJT_DEFAULT ||
(object->flags & OBJ_SWAP) != 0`. No functional change intended.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 46385
Build 43274: arc lint + arc unit

Event Timeline

markj requested review of this revision.Jul 12 2022, 4:22 PM
This revision is now accepted and ready to land.Jul 12 2022, 4:55 PM

Remove a stale comment from vm_object_split().

This revision now requires review to proceed.Jul 13 2022, 1:23 PM
alc added inline comments.
sys/vm/vm_object.c
1528–1529

As an aside, I don't see why we pass a charge to vm_object_allocate_anon(). Currently, the passed charge is always equal to ptoa(size). Moreover, I'm skeptical that there will be a future scenario where it differs.

This revision is now accepted and ready to land.Jul 13 2022, 3:05 PM
This revision was automatically updated to reflect the committed changes.