]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
btrfs: unify types for metadata_ratio and data_chunk_allocations
authorAnand Jain <anand.jain@oracle.com>
Mon, 26 Feb 2018 08:46:05 +0000 (16:46 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Mar 2018 13:09:40 +0000 (15:09 +0200)
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: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.h
fs/btrfs/super.c

index d6a2fc311187953e6b252f9d895c2708735ec6d5..eabc8431b442788522a8a30de536bc95e73b96fe 100644 (file)
@@ -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;
 
index 1dd2e785918ce3bbaa823ca9fafd8386673dd3d7..defaccde8d1681825ef8f4e68cfa45c82e7b5c52 100644 (file)
@@ -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);