Page MenuHomeFreeBSD

Move map lookup into a separate function.
ClosedPublic

Authored by jeff on Jan 21 2020, 7:42 PM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 4 2024, 4:15 PM
Unknown Object (File)
Oct 4 2024, 2:01 PM
Unknown Object (File)
Oct 2 2024, 12:01 AM
Unknown Object (File)
Oct 1 2024, 8:59 PM
Unknown Object (File)
Oct 1 2024, 7:01 PM
Unknown Object (File)
Sep 30 2024, 7:39 AM
Unknown Object (File)
Sep 28 2024, 10:05 PM
Unknown Object (File)
Sep 21 2024, 1:36 PM
Subscribers

Details

Summary

I'm not totally in love with the vm return codes. However, I am following a pattern that exists elsewhere in this file where RESOURCE_SHORTAGE means restart.

This should be functionally identical.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jeff added reviewers: alc, dougm, kib, markj.
jeff set the repository for this revision to rS FreeBSD src repository - subversion.
kib added inline comments.
sys/vm/vm_fault.c
878 ↗(On Diff #67114)

You can write this cleaner IMO:

if (result == KERN_RESOURCE_SHORTAGE)
        goto RetryFault;
if (result != KERN_SUCCESS)
         return (result);
This revision is now accepted and ready to land.Jan 21 2020, 9:00 PM
markj added inline comments.
sys/vm/vm_fault.c
878 ↗(On Diff #67114)

Wouldn't that result in two comparisons instead of one in the common case?