]> git.hungrycats.org Git - linux/commitdiff
btrfs: fix clashing number of the enhanced balance usage filter
authorDavid Sterba <dsterba@suse.com>
Mon, 16 Nov 2015 15:50:13 +0000 (16:50 +0100)
committerZygo Blaxell <zblaxell@thirteen.furryterror.org>
Fri, 27 Nov 2015 22:13:12 +0000 (17:13 -0500)
I've accidentally picked an already used number for the enhanced usage
filter represented by BTRFS_BALANCE_ARGS_USAGE_RANGE, clashing with
BTRFS_BALANCE_ARGS_CONVERT. Introduced during the development phase,
no backward compatibility issues.

Reported-by: Holger Hoffstätte <holger.hoffstaette@googlemail.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Fixes: bc3094673f22 ("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 da02c6898952a2bc251dd51ed9f897e0a72a853e)

fs/btrfs/volumes.h

index ae0e99bcd47a401abc6cfb3e26efb2de80fd4c95..c1c929aaabb450178027517cfe71dcd5e4d98c5d 100644 (file)
@@ -373,7 +373,7 @@ struct map_lookup {
 #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_USAGE_RANGE (1ULL << 8)
+#define BTRFS_BALANCE_ARGS_USAGE_RANGE (1ULL << 10)
 
 #define BTRFS_BALANCE_ARGS_MASK                        \
        (BTRFS_BALANCE_ARGS_PROFILES |          \