Commit 261cc2cc authored by Hans van Kranenburg's avatar Hans van Kranenburg Committed by David Sterba

Btrfs: consistent usage of types in balance_args

The btrfs_balance_args are only used for the balance ioctl, so use __u
instead of __le here for consistency. The __le usage was introduced in
bc309467 and dee32d0a and was probably a result of
copy/pasting when the code was written.

The usage of __le did not break anything, but it's unnecessary. Also,
this change makes the code less confusing for the careful reader.
Signed-off-by: default avatarHans van Kranenburg <hans.van.kranenburg@mendix.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 4d339d01
...@@ -291,10 +291,10 @@ struct btrfs_ioctl_feature_flags { ...@@ -291,10 +291,10 @@ struct btrfs_ioctl_feature_flags {
struct btrfs_balance_args { struct btrfs_balance_args {
__u64 profiles; __u64 profiles;
union { union {
__le64 usage; __u64 usage;
struct { struct {
__le32 usage_min; __u32 usage_min;
__le32 usage_max; __u32 usage_max;
}; };
}; };
__u64 devid; __u64 devid;
...@@ -324,8 +324,8 @@ struct btrfs_balance_args { ...@@ -324,8 +324,8 @@ struct btrfs_balance_args {
* Process chunks that cross stripes_min..stripes_max devices, * Process chunks that cross stripes_min..stripes_max devices,
* BTRFS_BALANCE_ARGS_STRIPES_RANGE * BTRFS_BALANCE_ARGS_STRIPES_RANGE
*/ */
__le32 stripes_min; __u32 stripes_min;
__le32 stripes_max; __u32 stripes_max;
__u64 unused[6]; __u64 unused[6];
} __attribute__ ((__packed__)); } __attribute__ ((__packed__));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment