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)
Wed, Apr 17, 7:18 PM
Unknown Object (File)
Dec 19 2023, 11:56 PM
Unknown Object (File)
Nov 25 2023, 4:38 PM
Unknown Object (File)
Nov 25 2023, 4:15 PM
Unknown Object (File)
Nov 23 2023, 4:38 PM
Unknown Object (File)
Nov 23 2023, 5:37 AM
Unknown Object (File)
Nov 23 2023, 1:46 AM
Unknown Object (File)
Nov 7 2023, 6:16 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

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 28826
Build 26834: 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
871

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

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

908

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

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

Missing a period here.