]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
btrfs: init ref_index to zero in add_inode_ref
authorChris Mason <chris.mason@fusionio.com>
Tue, 9 Oct 2012 15:17:20 +0000 (11:17 -0400)
committerChris Mason <chris.mason@fusionio.com>
Tue, 9 Oct 2012 15:17:20 +0000 (11:17 -0400)
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/tree-log.c

index 67eab2d4d8a9bc125279454ed10577cff095b5de..e9ebb472b28ba6d5bb9e077e8b1a2f877797adb0 100644 (file)
@@ -1033,7 +1033,7 @@ static noinline int add_inode_ref(struct btrfs_trans_handle *trans,
        int log_ref_ver = 0;
        u64 parent_objectid;
        u64 inode_objectid;
-       u64 ref_index;
+       u64 ref_index = 0;
        int ref_struct_size;
 
        ref_ptr = btrfs_item_ptr_offset(eb, slot);