btrfs: publish allocation data in sysfs
authorJeff Mahoney <jeffm@suse.com>
Fri, 1 Nov 2013 17:07:04 +0000 (13:07 -0400)
committerChris Mason <clm@fb.com>
Tue, 28 Jan 2014 21:19:29 +0000 (13:19 -0800)
commit6ab0a2029ceaedb78af807871820708b7353e3be
treeec9684534264d7b6d2cc0e6137ad7c7f851b1e88
parent01e219e8069516cdb98594d417b8bb8d906ed30d
btrfs: publish allocation data in sysfs

While trying to debug ENOSPC issues, it's helpful to understand what the
kernel's view of the available space is. We export this information
via ioctl, but sysfs files are more easily used.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/ctree.h
fs/btrfs/extent-tree.c
fs/btrfs/sysfs.c
fs/btrfs/sysfs.h