Skip to content

Commit f46dbe3

Browse files
author
Chris Mason
committed
btrfs: init ref_index to zero in add_inode_ref
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
1 parent 1037a5a commit f46dbe3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/btrfs/tree-log.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,7 @@ static noinline int add_inode_ref(struct btrfs_trans_handle *trans,
10331033
int log_ref_ver = 0;
10341034
u64 parent_objectid;
10351035
u64 inode_objectid;
1036-
u64 ref_index;
1036+
u64 ref_index = 0;
10371037
int ref_struct_size;
10381038

10391039
ref_ptr = btrfs_item_ptr_offset(eb, slot);

0 commit comments

Comments
 (0)