Page MenuHomeFreeBSD

hide map entry next and prev fields
ClosedPublic

Authored by dougm on Nov 13 2019, 4:25 AM.
Tags
None
Referenced Files
F114858329: D22347.id64276.diff
Thu, Apr 17, 6:53 PM
Unknown Object (File)
Wed, Apr 16, 8:33 PM
Unknown Object (File)
Mon, Apr 14, 10:56 AM
Unknown Object (File)
Mon, Apr 14, 4:08 AM
Unknown Object (File)
Mon, Apr 14, 12:56 AM
Unknown Object (File)
Mon, Apr 14, 12:12 AM
Unknown Object (File)
Mar 2 2025, 1:41 AM
Unknown Object (File)
Jan 17 2025, 8:20 PM
Subscribers

Details

Summary

Define wrapper functions vm_map_entry_{succ,pred} to act as wrappers around entry->{next,prev} when those are used for ordered list traversal, and use those wrapper functions everywhere. Where the next field is used for maintaining a stack of deferred operations, #define defer_next to make that different usage clearer, and then use the 'right' pointer instead of 'next' for that purpose.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

Thanks. If you plan to commit this patch on its own, I'd suggest adding a comment above defer_next, even though that definition would be deleted shortly after.

This revision is now accepted and ready to land.Nov 13 2019, 3:24 PM