]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/btrfs/ctree.h
btrfs: extend balance filter limit to take minimum and maximum
[karo-tx-linux.git] / fs / btrfs / ctree.h
index 3fa3c3b7bb6654b3a4dd7b8f26e895dc98f1e15a..460cd69b405e069938e6b92d85cd95ed3eaafda7 100644 (file)
@@ -846,8 +846,18 @@ struct btrfs_disk_balance_args {
        /* BTRFS_BALANCE_ARGS_* */
        __le64 flags;
 
-       /* BTRFS_BALANCE_ARGS_LIMIT value */
-       __le64 limit;
+       /*
+        * BTRFS_BALANCE_ARGS_LIMIT with value 'limit'
+        * BTRFS_BALANCE_ARGS_LIMIT_RANGE - the extend version can use minimum
+        * and maximum
+        */
+       union {
+               __le64 limit;
+               struct {
+                       __le32 limit_min;
+                       __le32 limit_max;
+               };
+       };
 
        __le64 unused[7];
 } __attribute__ ((__packed__));