Page MenuHomeFreeBSD

Define a function combining vm entry lookup and clip-start
ClosedPublic

Authored by dougm on Jan 1 2020, 7:48 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, May 14, 4:30 AM
Unknown Object (File)
Fri, May 8, 8:34 AM
Unknown Object (File)
Wed, May 6, 11:14 PM
Unknown Object (File)
Mon, Apr 27, 5:06 PM
Unknown Object (File)
Sat, Apr 25, 7:40 AM
Unknown Object (File)
Mon, Apr 20, 12:19 AM
Unknown Object (File)
Wed, Apr 15, 12:56 PM
Unknown Object (File)
Apr 6 2026, 6:03 AM
Subscribers

Details

Summary

Most uses of vm_map_clip_start follow a call to vm_map_lookup. Define an inline function vm_map_lookup_clip_start that invokes them both and use it in places that invoke both. Drop a couple of local variables made unnecessary by this function.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

I ran a preliminary 5 hour tests + a buildworld with D22987.66203.diff on r356250. No problems seen.

Add an important omitted line.

I ran a full stress2 test on r356314 + D22987.66269.diff. No problems seen.

Seems reasonable to me.

sys/vm/vm_map.c
2418

This line should be indented by four spaces.

3757

This comment is still missing a period. I'm not sure it is very useful to begin with.

This revision is now accepted and ready to land.Jan 23 2020, 5:51 PM