btrfs-progs: Add initialztion of rec->crossing_stripes
rec->crossing_stripes is not initialized in allocate place, and have possibility causing wrong report for normal tree block. Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
ae60507e59
commit
7fc612e6ca
1 changed files with 1 additions and 0 deletions
|
@ -4419,6 +4419,7 @@ static int add_extent_rec(struct cache_tree *extent_cache,
|
|||
rec->metadata = metadata;
|
||||
rec->flag_block_full_backref = -1;
|
||||
rec->bad_full_backref = 0;
|
||||
rec->crossing_stripes = 0;
|
||||
INIT_LIST_HEAD(&rec->backrefs);
|
||||
INIT_LIST_HEAD(&rec->dups);
|
||||
INIT_LIST_HEAD(&rec->list);
|
||||
|
|
Loading…
Reference in a new issue