Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 128943
b: refs/heads/master
c: ef8bbdf
h: refs/heads/master
i:
  128941: b4180d9
  128939: d4f82d1
  128935: 55b9cd9
  128927: 24adaab
v: v3
  • Loading branch information
Josef Bacik authored and Chris Mason committed Sep 25, 2008
1 parent e3fb61b commit 04ca74b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: f25956cc582f5954033cca3f9488c0a5d5193541
refs/heads/master: ef8bbdfe7e12dc9b4e80756f6d606c4639c65851
9 changes: 5 additions & 4 deletions trunk/fs/btrfs/extent-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ static int cache_block_group(struct btrfs_root *root,
struct btrfs_block_group_cache *block_group)
{
struct btrfs_path *path;
int ret;
int ret = 0;
struct btrfs_key key;
struct extent_buffer *leaf;
struct extent_io_tree *free_space_cache;
Expand Down Expand Up @@ -102,10 +102,10 @@ static int cache_block_group(struct btrfs_root *root,
btrfs_set_key_type(&key, BTRFS_EXTENT_ITEM_KEY);
ret = btrfs_search_slot(NULL, root, &key, path, 0, 0);
if (ret < 0)
return ret;
goto err;
ret = btrfs_previous_item(root, path, 0, BTRFS_EXTENT_ITEM_KEY);
if (ret < 0)
return ret;
goto err;
if (ret == 0) {
leaf = path->nodes[0];
btrfs_item_key_to_cpu(leaf, &key, path->slots[0]);
Expand Down Expand Up @@ -161,9 +161,10 @@ static int cache_block_group(struct btrfs_root *root,
last + hole_size - 1, GFP_NOFS);
}
block_group->cached = 1;
ret = 0;
err:
btrfs_free_path(path);
return 0;
return ret;
}

struct btrfs_block_group_cache *btrfs_lookup_first_block_group(struct
Expand Down

0 comments on commit 04ca74b

Please sign in to comment.