]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: backref, cleanup __ namespace abuse
authorJeff Mahoney <jeffm@suse.com>
Thu, 29 Jun 2017 03:56:57 +0000 (21:56 -0600)
committerDavid Sterba <dsterba@suse.com>
Wed, 16 Aug 2017 12:19:53 +0000 (14:19 +0200)
commit94b83edd10d2979e6ec71daa84e6a41c362a1011
tree80d0cbbd2c8ca67624f2f9ac9bf8c597d882075a
parentfe8eb738fa06aaf0e52277c0787151a7bb3d1eb2
btrfs: backref, cleanup __ namespace abuse

We typically use __ to indicate a helper routine that shouldn't be
called directly without understanding the proper context required
to do so.  We use static functions to indicate that a function is
private to a particular C file.  The backref code uses static
function and __ prefixes on nearly everything, which makes the code
difficult to read and establishes a pattern for future code that
shouldn't be followed.  This patch drops all the unnecessary prefixes.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/backref.c