btrfs: add simple debugfs interface
authorDavid Sterba <dsterba@suse.cz>
Wed, 5 Feb 2014 14:36:18 +0000 (15:36 +0100)
committerJosef Bacik <jbacik@fb.com>
Mon, 10 Mar 2014 19:15:51 +0000 (15:15 -0400)
Help during debugging to export various interesting infromation and
tunables without the need of extra mount options or ioctls.

Usage:
* declare your variable in sysfs.h, and include where you need it
* define the variable in sysfs.c and make it visible via
  debugfs_create_TYPE

Depends on CONFIG_DEBUG_FS.

Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Josef Bacik <jbacik@fb.com>
fs/btrfs/sysfs.c
fs/btrfs/sysfs.h

Simple merge
Simple merge