Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 232998
b: refs/heads/master
c: dedefd7
h: refs/heads/master
v: v3
  • Loading branch information
Josef Bacik authored and Chris Mason committed Jan 28, 2011
1 parent 809baab commit 330acd6
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: abd30bb0af9d4671506502278e8631bed9e3c35c
refs/heads/master: dedefd7215d3ec451291ca393e5c8e4c1882c8c6
5 changes: 3 additions & 2 deletions trunk/fs/btrfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -2718,9 +2718,10 @@ static int check_path_shared(struct btrfs_root *root,
struct extent_buffer *eb;
int level;
u64 refs = 1;
int uninitialized_var(ret);

for (level = 0; level < BTRFS_MAX_LEVEL; level++) {
int ret;

if (!path->nodes[level])
break;
eb = path->nodes[level];
Expand All @@ -2731,7 +2732,7 @@ static int check_path_shared(struct btrfs_root *root,
if (refs > 1)
return 1;
}
return ret; /* XXX callers? */
return 0;
}

/*
Expand Down

0 comments on commit 330acd6

Please sign in to comment.