]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: export global block reserve size as space_info
authorDavid Sterba <dsterba@suse.cz>
Fri, 7 Feb 2014 13:34:12 +0000 (14:34 +0100)
committerChris Mason <clm@fb.com>
Mon, 7 Apr 2014 17:41:53 +0000 (10:41 -0700)
commitaf82e66b52260695fdbede71a9157dd1786eadc7
treef210c9e347318a954dec2e7a4d367f76ebf0da9e
parentd2bd2a422a2e8d5de32f6483d56a5c3036afc359
btrfs: export global block reserve size as space_info

Introduce a block group type bit for a global reserve and fill the space
info for SPACE_INFO ioctl. This should replace the newly added ioctl
(b324857a7bd03d1b8d49990f3e3cff118fef5000) to get just the 'size' part
of the global reserve, while the actual usage can be now visible in the
'btrfs fi df' output during ENOSPC stress.

The unpatched userspace tools will show the blockgroup as 'unknown'.

CC: Jeff Mahoney <jeffm@suse.com>
CC: Josef Bacik <jbacik@fb.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/ctree.h
fs/btrfs/ioctl.c