Message ID | 20180226084605.7120-1-anand.jain@oracle.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Mon, Feb 26, 2018 at 04:46:05PM +0800, Anand Jain wrote: > 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> > --- > v2->v3: @old_metadata_ratio change it to u32 > v1->v2: Update change log. Added to next, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 0b67ee4dcb6e..32ea4cb839c4 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h @@ -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; diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index f92f2e1ec00b..8f78fb2b8204 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c @@ -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; u32 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);
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> --- v2->v3: @old_metadata_ratio change it to u32 v1->v2: Update change log. fs/btrfs/ctree.h | 4 ++-- fs/btrfs/super.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)