Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 155920
b: refs/heads/master
c: 1fcbac5
h: refs/heads/master
v: v3
  • Loading branch information
Yan Zheng authored and Chris Mason committed Jul 24, 2009
1 parent e7be221 commit 3f78cf9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 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: 20736abaa361bea488df6a1f66f6b37fb01107b9
refs/heads/master: 1fcbac581be375ca0a686f72ee2b7fd1dbf386e7
10 changes: 7 additions & 3 deletions trunk/fs/btrfs/volumes.c
Original file line number Diff line number Diff line change
Expand Up @@ -758,9 +758,13 @@ static noinline int find_free_dev_extent(struct btrfs_trans_handle *trans,
ret = btrfs_search_slot(trans, root, &key, path, 0, 0);
if (ret < 0)
goto error;
ret = btrfs_previous_item(root, path, 0, key.type);
if (ret < 0)
goto error;
if (ret > 0) {
ret = btrfs_previous_item(root, path, key.objectid, key.type);
if (ret < 0)
goto error;
if (ret > 0)
start_found = 1;
}
l = path->nodes[0];
btrfs_item_key_to_cpu(l, &key, path->slots[0]);
while (1) {
Expand Down

0 comments on commit 3f78cf9

Please sign in to comment.