]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: add ioctl to export size of global metadata reservation
authorJeff Mahoney <jeffm@suse.com>
Fri, 1 Nov 2013 17:07:03 +0000 (13:07 -0400)
committerChris Mason <clm@fb.com>
Tue, 28 Jan 2014 21:19:28 +0000 (13:19 -0800)
commitb324857a7bd03d1b8d49990f3e3cff118fef5000
tree0e8ff696017353a46d442bff736050ad451f6f8d
parentcd6abbf0a2fe5bf89ba61f9520af3e390cf13973
btrfs: add ioctl to export size of global metadata reservation

btrfs filesystem df output will show the size of the metadata space
and how much of it is used, and the user assumes that the difference
is all usable space. Since that's not actually the case due to the
global metadata reservation, we should provide the full picture to the
user.

This patch adds an ioctl that exports the size of the global metadata
reservation so that btrfs filesystem df can report it.

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/ioctl.c
include/uapi/linux/btrfs.h