Page MenuHomeFreeBSD

Fix the stale and incorrect comments in vm/default_pager.c
ClosedPublic

Authored by alc on Dec 13 2016, 6:57 PM.
Tags
None
Referenced Files
F83917119: D8781.id22921.diff
Thu, May 16, 8:26 PM
Unknown Object (File)
Mon, May 13, 1:59 AM
Unknown Object (File)
Sun, May 12, 5:10 PM
Unknown Object (File)
Sun, May 12, 12:09 PM
Unknown Object (File)
Dec 20 2023, 2:19 AM
Unknown Object (File)
Nov 8 2023, 7:24 AM
Unknown Object (File)
Nov 7 2023, 4:43 AM
Unknown Object (File)
Nov 1 2023, 1:44 AM
Subscribers
None

Details

Summary

This seems like a classic case of misplaced comments: Comments in place X describe what is going on in place Y. As place Y evolves, no one expects that there are comments elsewhere describing how place Y works.

I've also addressed some style issues.

Test Plan

Tell me if you think that I've actually deleted anything useful.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

alc retitled this revision from to Fix the stale and incorrect comments in vm/default_pager.c.
alc updated this object.
alc edited the test plan for this revision. (Show Details)
alc added reviewers: markj, kib.
kib edited edge metadata.
This revision is now accepted and ready to land.Dec 13 2016, 7:02 PM
vm/default_pager.c
117

I'm thinking of changing "this method will" to "this method implementation will".

vm/default_pager.c
117

In my previous life, where I programmed e.g. in C++, I do not remember a need to use extra-accurate and long 'this method implementation' designator when the reference was obviously to the current implementation.

markj edited edge metadata.
markj added inline comments.
vm/default_pager.c
117

"this function will"?

vm/default_pager.c
117

Yes, I'm happy with "function".

This revision was automatically updated to reflect the committed changes.