summaryrefslogtreecommitdiff
path: root/cmds-check.c
diff options
context:
space:
mode:
authorZhao Lei <zhaolei@cn.fujitsu.com>2015-08-21 21:07:43 +0800
committerDavid Sterba <dsterba@suse.com>2015-08-31 19:25:12 +0200
commit7fc612e6caa4799070f621e8d45eeac4d0a2da96 (patch)
treef74a31b6a1e07af87937d07e5a45a91ffa9a42a0 /cmds-check.c
parentae60507e59a1cad43303a0f9e1b72ef4e5bb1e72 (diff)
downloadbtrfs-progs-7fc612e6caa4799070f621e8d45eeac4d0a2da96.tar.gz
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>
Diffstat (limited to 'cmds-check.c')
-rw-r--r--cmds-check.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmds-check.c b/cmds-check.c
index 8019fb0..1b3bc17 100644
--- a/cmds-check.c
+++ b/cmds-check.c
@@ -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);