diff options
| author | Hans van Kranenburg <hans.van.kranenburg@mendix.com> | 2017-03-08 12:58:43 -0500 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2017-04-18 08:07:25 -0400 |
| commit | 261cc2cca0a8c1d817be65434052feb1db1fd961 (patch) | |
| tree | 765c59bb73159bd6df8de33cc4091f3be6624a93 /include/uapi/linux | |
| parent | 4d339d01063a248b3deb3aff94aaf53be6e84e08 (diff) | |
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
bc3094673f22d and dee32d0ac3719 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: Hans van Kranenburg <hans.van.kranenburg@mendix.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/btrfs.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/uapi/linux/btrfs.h b/include/uapi/linux/btrfs.h index dcfc3a5a9cb1..a456e5309238 100644 --- a/include/uapi/linux/btrfs.h +++ b/include/uapi/linux/btrfs.h | |||
| @@ -291,10 +291,10 @@ struct btrfs_ioctl_feature_flags { | |||
| 291 | struct btrfs_balance_args { | 291 | struct btrfs_balance_args { |
| 292 | __u64 profiles; | 292 | __u64 profiles; |
| 293 | union { | 293 | union { |
| 294 | __le64 usage; | 294 | __u64 usage; |
| 295 | struct { | 295 | struct { |
| 296 | __le32 usage_min; | 296 | __u32 usage_min; |
| 297 | __le32 usage_max; | 297 | __u32 usage_max; |
| 298 | }; | 298 | }; |
| 299 | }; | 299 | }; |
| 300 | __u64 devid; | 300 | __u64 devid; |
| @@ -324,8 +324,8 @@ struct btrfs_balance_args { | |||
| 324 | * Process chunks that cross stripes_min..stripes_max devices, | 324 | * Process chunks that cross stripes_min..stripes_max devices, |
| 325 | * BTRFS_BALANCE_ARGS_STRIPES_RANGE | 325 | * BTRFS_BALANCE_ARGS_STRIPES_RANGE |
| 326 | */ | 326 | */ |
| 327 | __le32 stripes_min; | 327 | __u32 stripes_min; |
| 328 | __le32 stripes_max; | 328 | __u32 stripes_max; |
| 329 | 329 | ||
| 330 | __u64 unused[6]; | 330 | __u64 unused[6]; |
| 331 | } __attribute__ ((__packed__)); | 331 | } __attribute__ ((__packed__)); |
