Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 310830
b: refs/heads/master
c: f617e2f
h: refs/heads/master
v: v3
  • Loading branch information
Jan Schmidt committed Jun 14, 2012
1 parent 2938bb5 commit 7751321
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 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: 4d5a0565cebf12c2ef854e4ac1961f13a710a950
refs/heads/master: f617e2fd52484fb74236a597d0f9068ec7d9d2dd
10 changes: 1 addition & 9 deletions trunk/fs/btrfs/backref.c
Original file line number Diff line number Diff line change
Expand Up @@ -294,16 +294,8 @@ static int __resolve_indirect_ref(struct btrfs_fs_info *fs_info,
goto out;
}

if (level == 0) {
if (ret == 1 && path->slots[0] >= btrfs_header_nritems(eb)) {
ret = btrfs_next_leaf(root, path);
if (ret)
goto out;
eb = path->nodes[0];
}

if (level == 0)
btrfs_item_key_to_cpu(eb, &key, path->slots[0]);
}

ret = add_all_parents(root, path, parents, level, &key,
ref->wanted_disk_byte, extent_item_pos);
Expand Down

0 comments on commit 7751321

Please sign in to comment.