Page MenuHomeFreeBSD

Move cow into its own function.
ClosedPublic

Authored by jeff on Jan 21 2020, 7:55 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 9, 1:47 PM
Unknown Object (File)
Nov 28 2024, 8:15 AM
Unknown Object (File)
Oct 18 2024, 9:52 AM
Unknown Object (File)
Oct 2 2024, 12:27 PM
Unknown Object (File)
Oct 2 2024, 6:02 AM
Unknown Object (File)
Sep 30 2024, 1:43 PM
Unknown Object (File)
Sep 18 2024, 4:22 AM
Unknown Object (File)
Sep 9 2024, 3:52 AM
Subscribers

Details

Summary

This one is straightforward because there are no failure cases in cow.

Throughout these patches I have left the faultcount and hardfault variables in the main function. It may be useful to move them into faultstate at some point.

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.
sys/vm/vm_fault.c
871 ↗(On Diff #67116)

I shortened this chain of conditions because I had the horizontal space but also because I find these to be related concepts.

kib added inline comments.
sys/vm/vm_fault.c
870 ↗(On Diff #67116)

Such comments could be changed to one-liner to further save the vertical space.

908 ↗(On Diff #67116)

I would reword this comment.

This revision is now accepted and ready to land.Jan 21 2020, 9:07 PM
sys/vm/vm_fault.c
908 ↗(On Diff #67116)

I general I find many of the historic comments are written in a more conversational and less professional style than we are tending towards. I would rather make a separate pass and evaluate comments together.

markj added inline comments.
sys/vm/vm_fault.c
873 ↗(On Diff #67116)

Missing a period here.