diff options
author | David Sterba | 2015-10-20 18:22:13 +0200 |
---|---|---|
committer | Chris Mason | 2015-10-26 19:38:30 -0700 |
commit | bc3094673f22d00794a8606200788e411b4ec80d (patch) | |
tree | a90e4834e26e4e69339a100d1489bcc3159e06d8 /include/uapi/linux | |
parent | dee32d0ac3719ef8d640efaf0884111df444730f (diff) |
btrfs: extend balance filter usage to take minimum and maximum
Similar to the 'limit' filter, we can enhance the 'usage' filter to
accept a range. The change is backward compatible, the range is applied
only in connection with the BTRFS_BALANCE_ARGS_USAGE_RANGE flag.
We don't have a usecase yet, the current syntax has been sufficient. The
enhancement should provide parity with other range-like filters.
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r-- | include/uapi/linux/btrfs.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/uapi/linux/btrfs.h b/include/uapi/linux/btrfs.h index 17a94704b183..dea893199257 100644 --- a/include/uapi/linux/btrfs.h +++ b/include/uapi/linux/btrfs.h @@ -206,7 +206,13 @@ struct btrfs_ioctl_feature_flags { */ struct btrfs_balance_args { __u64 profiles; - __u64 usage; + union { + __le64 usage; + struct { + __le32 usage_min; + __le32 usage_max; + }; + }; __u64 devid; __u64 pstart; __u64 pend; |