mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 12:44:03 +02:00
btrfs: remove duplicated block group type assignment
In the function fill_dummy_bgs(), bg->flags is assigned twice. Just remove the second assignment. Signed-off-by: Qu Wenruo <wqu@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
4cbafa2ff3
commit
211362e627
|
|
@ -2633,7 +2633,6 @@ static int fill_dummy_bgs(struct btrfs_fs_info *fs_info)
|
|||
bg->flags = map->type;
|
||||
bg->cached = BTRFS_CACHE_FINISHED;
|
||||
bg->used = map->chunk_len;
|
||||
bg->flags = map->type;
|
||||
bg->space_info = btrfs_find_space_info(fs_info, bg->flags);
|
||||
ret = btrfs_add_block_group_cache(bg);
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user