]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - include/uapi/linux/btrfs.h
btrfs: extend balance filter limit to take minimum and maximum
[karo-tx-linux.git] / include / uapi / linux / btrfs.h
index b6dec05c7196a22511e346242724406eef88265b..11f13108b78b2222b093419a66bc12b8e135be07 100644 (file)
@@ -217,7 +217,18 @@ struct btrfs_balance_args {
 
        __u64 flags;
 
-       __u64 limit;            /* limit number of processed chunks */
+       /*
+        * BTRFS_BALANCE_ARGS_LIMIT with value 'limit'
+        * BTRFS_BALANCE_ARGS_LIMIT_RANGE - the extend version can use minimum
+        * and maximum
+        */
+       union {
+               __u64 limit;            /* limit number of processed chunks */
+               struct {
+                       __u32 limit_min;
+                       __u32 limit_max;
+               };
+       };
        __u64 unused[7];
 } __attribute__ ((__packed__));