diff options
author | David Sterba <dsterba@suse.com> | 2015-10-16 19:15:50 +0200 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2015-10-26 19:38:30 -0700 |
commit | b66d62ba1e0d7ada5b89afffe19d12662b5c92c9 (patch) | |
tree | 8a1aa156274ddf2222f31ca54c89a93f984d4ca3 /fs/btrfs/volumes.h | |
parent | bc3094673f22d00794a8606200788e411b4ec80d (diff) | |
download | talos-op-linux-b66d62ba1e0d7ada5b89afffe19d12662b5c92c9.tar.gz talos-op-linux-b66d62ba1e0d7ada5b89afffe19d12662b5c92c9.zip |
btrfs: add balance filters limits, stripes and usage to supported mask
Enable the extended 'limit' syntax (a range), the new 'stripes' and
extended 'usage' syntax (a range) filters in the filters mask. The patch
comes separate and not within the series that introduced the new filters
because the patch adding the mask was merged in a late rc. The
integration branch was based on an older rc and could not merge the
patch due to the missing changes.
Prerequisities:
* btrfs: check unsupported filters in balance arguments
* btrfs: extend balance filter limit to take minimum and maximum
* btrfs: add balance filter for stripes
* btrfs: extend balance filter usage to take minimum and maximum
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 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/btrfs/volumes.h b/fs/btrfs/volumes.h index 2a396cbb14a5..ec5712372732 100644 --- a/fs/btrfs/volumes.h +++ b/fs/btrfs/volumes.h @@ -390,7 +390,10 @@ struct map_lookup { BTRFS_BALANCE_ARGS_DEVID | \ BTRFS_BALANCE_ARGS_DRANGE | \ BTRFS_BALANCE_ARGS_VRANGE | \ - BTRFS_BALANCE_ARGS_LIMIT) + BTRFS_BALANCE_ARGS_LIMIT | \ + BTRFS_BALANCE_ARGS_LIMIT_RANGE | \ + BTRFS_BALANCE_ARGS_STRIPES_RANGE | \ + BTRFS_BALANCE_ARGS_USAGE_RANGE) /* * Profile changing flags. When SOFT is set we won't relocate chunk if |