From: Zhao Lei Date: Fri, 21 Aug 2015 13:07:43 +0000 (+0800) Subject: btrfs-progs: Add initialztion of rec->crossing_stripes X-Git-Tag: upstream/4.16.1~2073 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7fc612e6caa4799070f621e8d45eeac4d0a2da96;p=platform%2Fupstream%2Fbtrfs-progs.git 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 Signed-off-by: David Sterba --- 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);