btrfs: add balance filter for stripes
authorGabríel Arthúr Pétursson <gabriel@system.is>
Mon, 28 Sep 2015 22:32:41 +0000 (22:32 +0000)
committerChris Mason <clm@fb.com>
Tue, 27 Oct 2015 02:38:29 +0000 (19:38 -0700)
commitdee32d0ac3719ef8d640efaf0884111df444730f
tree26664ba9632bdac8539e8cfec61807f8e7d120bd
parent12907fc79818a62a2478f84f7795afa774bf7f9c
btrfs: add balance filter for stripes

Balance block groups which have the given number of stripes, defined by
a range min..max. This is useful to selectively rebalance only chunks
that do not span enough devices, applies to RAID0/10/5/6.

Signed-off-by: Gabríel Arthúr Pétursson <gabriel@system.is>
[ renamed bargs members, added to the UAPI, wrote the changelog ]
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/ctree.h
fs/btrfs/volumes.c
fs/btrfs/volumes.h
include/uapi/linux/btrfs.h