diff mbox

btrfs-progs: Add initialztion of rec->crossing_stripes

Message ID 3632be46c332732074edadc308bf0201b75cb6db.1440162456.git.zhaolei@cn.fujitsu.com (mailing list archive)
State Accepted
Headers show

Commit Message

Zhaolei Aug. 21, 2015, 1:07 p.m. UTC
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>
---
 cmds-check.c | 1 +
 1 file changed, 1 insertion(+)

Comments

David Sterba Aug. 25, 2015, 3:42 p.m. UTC | #1
On Fri, Aug 21, 2015 at 09:07:43PM +0800, Zhao Lei wrote:
> 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>

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/cmds-check.c b/cmds-check.c
index 4f18e45..2e6dc68 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);