diff options
author | Gabríel Arthúr Pétursson <gabriel@system.is> | 2015-09-28 22:32:41 +0000 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2015-10-26 19:38:29 -0700 |
commit | dee32d0ac3719ef8d640efaf0884111df444730f (patch) | |
tree | 26664ba9632bdac8539e8cfec61807f8e7d120bd /fs/btrfs/volumes.h | |
parent | 12907fc79818a62a2478f84f7795afa774bf7f9c (diff) | |
download | linux-stable-dee32d0ac3719ef8d640efaf0884111df444730f.tar.gz linux-stable-dee32d0ac3719ef8d640efaf0884111df444730f.tar.bz2 linux-stable-dee32d0ac3719ef8d640efaf0884111df444730f.zip |
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>
Diffstat (limited to 'fs/btrfs/volumes.h')
-rw-r--r-- | fs/btrfs/volumes.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/volumes.h b/fs/btrfs/volumes.h index 628d4e17019d..a5bf224d3c65 100644 --- a/fs/btrfs/volumes.h +++ b/fs/btrfs/volumes.h @@ -381,6 +381,7 @@ struct map_lookup { #define BTRFS_BALANCE_ARGS_VRANGE (1ULL << 4) #define BTRFS_BALANCE_ARGS_LIMIT (1ULL << 5) #define BTRFS_BALANCE_ARGS_LIMIT_RANGE (1ULL << 6) +#define BTRFS_BALANCE_ARGS_STRIPES_RANGE (1ULL << 7) #define BTRFS_BALANCE_ARGS_MASK \ (BTRFS_BALANCE_ARGS_PROFILES | \ |