Skip to content

Commit 261cc2c

Browse files
knorriekdave
authored andcommitted
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 bc30946 and dee32d0 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 <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 4d339d0 commit 261cc2c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

include/uapi/linux/btrfs.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -291,10 +291,10 @@ struct btrfs_ioctl_feature_flags {
291291
struct btrfs_balance_args {
292292
__u64 profiles;
293293
union {
294-
__le64 usage;
294+
__u64 usage;
295295
struct {
296-
__le32 usage_min;
297-
__le32 usage_max;
296+
__u32 usage_min;
297+
__u32 usage_max;
298298
};
299299
};
300300
__u64 devid;
@@ -324,8 +324,8 @@ struct btrfs_balance_args {
324324
* Process chunks that cross stripes_min..stripes_max devices,
325325
* BTRFS_BALANCE_ARGS_STRIPES_RANGE
326326
*/
327-
__le32 stripes_min;
328-
__le32 stripes_max;
327+
__u32 stripes_min;
328+
__u32 stripes_max;
329329

330330
__u64 unused[6];
331331
} __attribute__ ((__packed__));

0 commit comments

Comments
 (0)