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

index 3775947429b28ea07678c4f58877bfcbb5f8bed6..826b98c211aead10735bfd2814b2317bf7e532aa 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) {