Page MenuHomeFreeBSD

Use vm_map_entry_t field prev less
ClosedPublic

Authored by dougm on Jun 13 2019, 3:04 AM.

Details

Summary

This change avoids using the prev field in two functions that iterate over consecutive entries, so that that can easily just 'remember' the prev value instead of looking it up.

This is a small part of an effort to eventually eliminate the prev field.

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

dougm created this revision.Jun 13 2019, 3:04 AM
kib accepted this revision.Jun 13 2019, 9:43 AM
kib added inline comments.
vm_map.c
4855 ↗(On Diff #58578)

You can remove excessive () in this line.

4856 ↗(On Diff #58578)

And there too.

4877 ↗(On Diff #58578)

Same.

This revision is now accepted and ready to land.Jun 13 2019, 9:43 AM
This revision was automatically updated to reflect the committed changes.