]> git.hungrycats.org Git - linux/commitdiff
btrfs: add balance filters limits, stripes and usage to supported mask
authorDavid Sterba <dsterba@suse.com>
Fri, 16 Oct 2015 17:15:50 +0000 (19:15 +0200)
committerZygo Blaxell <zblaxell@serenity.furryterror.org>
Thu, 29 Oct 2015 21:53:46 +0000 (17:53 -0400)
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>
(cherry picked from commit b66d62ba1e0d7ada5b89afffe19d12662b5c92c9)
(cherry picked from commit a73c61e1cc78fe5daddda576071c52246ee19a13)

fs/btrfs/volumes.h

index 3178c9dd942c2da65dc14abb00272ad81416e7e6..3d44556a7a0d69a228a92ab0d9cf5973e27dafcb 100644 (file)
@@ -385,7 +385,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)
 
 #define BTRFS_BALANCE_ARGS_MASK                        \
        (BTRFS_BALANCE_ARGS_PROFILES |          \