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
Unknown Object (File)
Fri, Mar 7, 8:44 AM
Unknown Object (File)
Thu, Feb 20, 10:21 PM
Unknown Object (File)
Thu, Feb 20, 12:11 PM
Unknown Object (File)
Fri, Feb 14, 9:39 PM
Unknown Object (File)
Thu, Feb 13, 8:17 AM
Unknown Object (File)
Thu, Feb 13, 6:26 AM
Unknown Object (File)
Feb 1 2025, 12:00 AM
Unknown Object (File)
Jan 13 2025, 2:14 PM
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

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

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 ↗(On Diff #22887)

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

vm/default_pager.c
117 ↗(On Diff #22887)

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 ↗(On Diff #22887)

"this function will"?

vm/default_pager.c
117 ↗(On Diff #22887)

Yes, I'm happy with "function".

This revision was automatically updated to reflect the committed changes.