aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/tree-log.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@fusionio.com>2012-10-09 11:17:20 -0400
committerChris Mason <chris.mason@fusionio.com>2012-10-09 11:17:20 -0400
commitf46dbe3dee853f8a860f889cb2b7ff4c624f2a7a (patch)
treeb9fa6671d9fbb18fd8a42b8ce44ffa87fa92119d /fs/btrfs/tree-log.c
parent1037a5affc266fdfe08b2dd415d309ab2778ce6a (diff)
btrfs: init ref_index to zero in add_inode_ref
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs/btrfs/tree-log.c')
-rw-r--r--fs/btrfs/tree-log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c
index 67eab2d4d8a9..e9ebb472b28b 100644
--- a/fs/btrfs/tree-log.c
+++ b/fs/btrfs/tree-log.c
@@ -1033,7 +1033,7 @@ static noinline int add_inode_ref(struct btrfs_trans_handle *trans,
1033 int log_ref_ver = 0; 1033 int log_ref_ver = 0;
1034 u64 parent_objectid; 1034 u64 parent_objectid;
1035 u64 inode_objectid; 1035 u64 inode_objectid;
1036 u64 ref_index; 1036 u64 ref_index = 0;
1037 int ref_struct_size; 1037 int ref_struct_size;
1038 1038
1039 ref_ptr = btrfs_item_ptr_offset(eb, slot); 1039 ref_ptr = btrfs_item_ptr_offset(eb, slot);