Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 309908
b: refs/heads/master
c: dadcaf7
h: refs/heads/master
v: v3
  • Loading branch information
Jan Schmidt committed May 26, 2012
1 parent 480adaf commit 93dd536
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cd1b413c5c863a96bfdeab8e91b1fb3a52665e42
refs/heads/master: dadcaf78b51e239d93f5ec9aac736de99081ee74
5 changes: 3 additions & 2 deletions trunk/fs/btrfs/backref.c
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ static int __add_inline_refs(struct btrfs_fs_info *fs_info,
* enumerate all inline refs
*/
leaf = path->nodes[0];
slot = path->slots[0] - 1;
slot = path->slots[0];

item_size = btrfs_item_size_nr(leaf, slot);
BUG_ON(item_size < sizeof(*ei));
Expand Down Expand Up @@ -661,8 +661,9 @@ static int find_parent_nodes(struct btrfs_trans_handle *trans,
struct extent_buffer *leaf;
int slot;

path->slots[0]--;
leaf = path->nodes[0];
slot = path->slots[0] - 1;
slot = path->slots[0];
btrfs_item_key_to_cpu(leaf, &key, slot);
if (key.objectid == bytenr &&
key.type == BTRFS_EXTENT_ITEM_KEY) {
Expand Down

0 comments on commit 93dd536

Please sign in to comment.