Page MenuHomeFreeBSD

Move the fault getpages code into its own function.
ClosedPublic

Authored by jeff on Jan 22 2020, 3:03 AM.
Tags
None
Referenced Files
F137045370: D23311.id67131.diff
Fri, Nov 21, 1:12 AM
F137044335: D23311.id67159.diff
Fri, Nov 21, 1:09 AM
F137043123: D23311.id67183.diff
Fri, Nov 21, 1:07 AM
F137042944: D23311.id.diff
Fri, Nov 21, 1:07 AM
F137042937: D23311.id67132.diff
Fri, Nov 21, 1:07 AM
F137041665: D23311.diff
Fri, Nov 21, 1:03 AM
F136906932: D23311.id67132.diff
Thu, Nov 20, 2:21 PM
F136906897: D23311.id67131.diff
Thu, Nov 20, 2:21 PM
Subscribers

Details

Summary

I left the readahead in the main loop because we don't need to repeat the dropbehind. However, storing the cached entry variables before unlocking the map was only done once before. I don't think this was important to the algorithm nor is it especially expensive.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 28836
Build 26844: arc lint + arc unit

Event Timeline

jeff added reviewers: alc, dougm, kib, markj.
jeff set the repository for this revision to rS FreeBSD src repository - subversion.
sys/vm/vm_fault.c
1088

Please do not do this. You are mixing VM_PAGER_XXX (pager errors namespace) and KERN_XXX (Mach errors).

This is arguably incorrect in particular because the numeric values intersect. Translate the rest of errors into KERN_ as well.

sys/vm/vm_fault.c
1088

ah yes. Will do.

I would argue that we should convert the whole mess to errno but not today.

Correct return values. Don't send pager errors back to vm_fault().

This revision is now accepted and ready to land.Jan 22 2020, 9:11 PM