]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit672074cf91625b6a6ba34f9e2739f7b8871d1c35
tree55363ac60e0ab2a95a4f52e9dbc5b64f44d81104
parent225667cf409a44cca20d151a76fffe6bd8e3f9cf
btrfs: add simple debugfs interface

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