[lustre-devel] [PATCH 01/38] lustre: llite: rename ldebugfs_[un]register_mountpoint

James Simmons jsimmons at infradead.org
Fri Aug 17 15:03:58 PDT 2018


> On Thu, Aug 16 2018, James Simmons wrote:
> 
> > Rename from ldebugfs_[un]register_mountpoint() to
> > ll_debugfs_[un]register_super().
> 
> I really helps with review if I am told *why* something is happening.
> 
> I can guess, but being told means I'm less concerned that I might have
> missed something.
> 
> I can see that "mountpoint" is an inappropriate name, though I'm not
> entired sure that "super" is a better now.  Surely this code is
> registering an filesystem (instance) with debugfs.... maybe a "super" is
> exactly a "filesystem instance"....
> 
> Why is ll_debugfs better than ldebugfs?  More typing doesn't usually
> thrill me.

This was a request by John Hammond, the lustre style enforcer :-) Same for
the ll_*() function naming. The idea here is all llite function begin
with ll_ prefix. How about this changelog.

--------------------------------------------------------------------------

Rename ldebugfs_[un]register_mountpoint() to ll_debugfs_[un]register_super().
This first aligns the functions name with the major of the llite function
prototypes by starting with the ll_* prefix. The use of mountpoint is not
the best way to describe the functions who's name are being changed. Since
this is managed by struct ll_sb_info, which is the lustre private 
instance for struct super_block, so rename to *_super() instead


More information about the lustre-devel mailing list