Re: [PATCH 24/45] CacheFiles: Add a hook to write a single page of data to an inode [ver #41]

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Randy Dunlap
Date: Friday, November 21, 2008 - 10:36 am

David Howells wrote:

I would have said that the prevailing comment style in struct
address_space_operations is sketchy or limited or lacking.

I want useful comments.  I don't give a hoot whether they are in kernel-doc
format or /* or //.  I'll even take them in a separate file if they are
more about theory of operation (overview) instead of directly related
to a struct or a function's operations, although some people want comments
only in source files because that is more likely to be updated when
needed.  I agree with that sentiment, but I wouldn't limit people to
having comments only in source files.  I just want comments or doc files
(which you usually provide plenty of).



Bring it on.  and -ENOPATCH.

I don't own Documentation/CodingStyle. I'm just willing to send patches for it.
You (or anyone) can do the same.



Easy to write a style guide, but difficult to get consensus on it.

If you don't document your own code, who will do it?  Probably nobody.



No, it's not fixed.


Either that or break the first line (function name & short description) up like:

/**
 * fubar - generally scrog and muck the system [based on an armed forces acronym for guess what]
 */

Change that to:

/**
 * fubar - scrog and muck up the system
 *
 * fubar (the name) is believed to come from an armed forces acronym
 * for you_know_what.
 */



I can't/don't force you or anyone to write proper documentation, and the
maintainers who could do that don't do it.

But basically (see above), I just want documentation.  It's form is
not a big deal to me.  The good thing about kernel-doc is that it
provides some consistency.  Have you ever heard of look and feel?
Well, documentation can have consistent look and feel too, and it should.

Do we make exceptions?  Sure, we do.  Just look at Documentation/lguest/.


-- 
~Randy
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 00/45] Permit filesystem local caching [ver #41], David Howells, (Thu Nov 20, 7:41 am)
[PATCH 12/45] FS-Cache: Root index definition [ver #41], David Howells, (Thu Nov 20, 7:42 am)
[PATCH 13/45] FS-Cache: Add cache tag handling [ver #41], David Howells, (Thu Nov 20, 7:42 am)
[PATCH 14/45] FS-Cache: Add cache management [ver #41], David Howells, (Thu Nov 20, 7:42 am)
[PATCH 16/45] FS-Cache: Add netfs registration [ver #41], David Howells, (Thu Nov 20, 7:43 am)
[PATCH 17/45] FS-Cache: Bit waiting helpers [ver #41], David Howells, (Thu Nov 20, 7:43 am)
[PATCH 28/45] FS-Cache: Make kAFS use FS-Cache [ver #41], David Howells, (Thu Nov 20, 7:44 am)
[PATCH 36/45] NFS: Use local disk inode cache [ver #41], David Howells, (Thu Nov 20, 7:44 am)
[PATCH 39/45] NFS: FS-Cache page management [ver #41], David Howells, (Thu Nov 20, 7:45 am)
[PATCH 44/45] NFS: Display local caching state [ver #41], David Howells, (Thu Nov 20, 7:45 am)
Re: [PATCH 24/45] CacheFiles: Add a hook to write a single ..., Valdis.Kletnieks, (Fri Nov 21, 10:15 am)
Re: [PATCH 24/45] CacheFiles: Add a hook to write a single ..., Randy Dunlap, (Fri Nov 21, 10:36 am)
FS-Cache Benchmarks, David Howells, (Tue Nov 25, 6:39 am)