mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 02:39:48 +00:00
btrfs: fix warning on uninit variable in btrfs_finish_chunk_alloc
map->num_stripes really can't be zero, but just in case. Signed-off-by: Chris Mason <clm@fb.com>
This commit is contained in:
parent
f0f76413d3
commit
140e639f1a
1 changed files with 1 additions and 1 deletions
|
@ -4794,7 +4794,7 @@ int btrfs_finish_chunk_alloc(struct btrfs_trans_handle *trans,
|
||||||
u64 dev_offset;
|
u64 dev_offset;
|
||||||
u64 stripe_size;
|
u64 stripe_size;
|
||||||
int i = 0;
|
int i = 0;
|
||||||
int ret;
|
int ret = 0;
|
||||||
|
|
||||||
em_tree = &extent_root->fs_info->mapping_tree.map_tree;
|
em_tree = &extent_root->fs_info->mapping_tree.map_tree;
|
||||||
read_lock(&em_tree->lock);
|
read_lock(&em_tree->lock);
|
||||||
|
|
Loading…
Reference in a new issue