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.
Details
Details
- Reviewers
dougm alc kib - Commits
- rG0cb2610ee2dc: vm: Remove handling for OBJT_DEFAULT objects
Diff Detail
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
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. |