]> 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)
commit0ad7db9ff8bfbdcf42af33e7f7c95d5064fe10b6
tree80d0cbbd2c8ca67624f2f9ac9bf8c597d882075a
parent51159e81f641f188a2aba70cc952b40829d4db28
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