Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d612ac59 authored by Anand Jain's avatar Anand Jain Committed by David Sterba
Browse files

btrfs: unify types for metadata_ratio and data_chunk_allocations



We have btrfs_fs_info::data_chunk_allocations and
btrfs_fs_info::metadata_ratio declared as unsigned which would be
unsinged int and kernel style prefers unsigned int over bare unsigned.
So this patch changes them to u32.

Signed-off-by: default avatarAnand Jain <anand.jain@oracle.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent de224b7c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -994,8 +994,8 @@ struct btrfs_fs_info {
	struct btrfs_balance_control *balance_ctl;
	wait_queue_head_t balance_wait_q;

	unsigned data_chunk_allocations;
	unsigned metadata_ratio;
	u32 data_chunk_allocations;
	u32 metadata_ratio;

	void *bdev_holder;

+1 −1
Original line number Diff line number Diff line
@@ -1737,7 +1737,7 @@ static int btrfs_remount(struct super_block *sb, int *flags, char *data)
	unsigned long old_compress_type = fs_info->compress_type;
	u64 old_max_inline = fs_info->max_inline;
	u32 old_thread_pool_size = fs_info->thread_pool_size;
	unsigned int old_metadata_ratio = fs_info->metadata_ratio;
	u32 old_metadata_ratio = fs_info->metadata_ratio;
	int ret;

	sync_filesystem(sb);