btrfs: replace path->slots[0] with otherwise unused variable 'slot'
authorValentina Giusti <valentina.giusti@microon.de>
Mon, 4 Nov 2013 21:34:28 +0000 (22:34 +0100)
committerChris Mason <clm@fb.com>
Tue, 28 Jan 2014 21:19:35 +0000 (13:19 -0800)
Signed-off-by: Valentina Giusti <valentina.giusti@microon.de>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/backref.c

index 3775947..826b98c 100644 (file)
@@ -1683,8 +1683,8 @@ static int iterate_inode_extrefs(u64 inum, struct btrfs_root *fs_root,
                btrfs_release_path(path);
 
                leaf = path->nodes[0];
-               item_size = btrfs_item_size_nr(leaf, path->slots[0]);
-               ptr = btrfs_item_ptr_offset(leaf, path->slots[0]);
+               item_size = btrfs_item_size_nr(leaf, slot);
+               ptr = btrfs_item_ptr_offset(leaf, slot);
                cur_offset = 0;
 
                while (cur_offset < item_size) {