Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 299805
b: refs/heads/master
c: aefc1eb
h: refs/heads/master
i:
  299803: de2a758
v: v3
  • Loading branch information
Jan Schmidt authored and David Sterba committed Apr 18, 2012
1 parent 6a4d149 commit 0cefa04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 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: 4735fb282830c0966b301dabcccf4753fa6604bb
refs/heads/master: aefc1eb13ebbb86c5ffade8a9e2425cd71032d7e
8 changes: 3 additions & 5 deletions trunk/fs/btrfs/backref.c
Original file line number Diff line number Diff line change
Expand Up @@ -1247,7 +1247,7 @@ static int iterate_irefs(u64 inum, struct btrfs_root *fs_root,
struct btrfs_path *path,
iterate_irefs_t *iterate, void *ctx)
{
int ret;
int ret = 0;
int slot;
u32 cur;
u32 len;
Expand All @@ -1259,7 +1259,7 @@ static int iterate_irefs(u64 inum, struct btrfs_root *fs_root,
struct btrfs_inode_ref *iref;
struct btrfs_key found_key;

while (1) {
while (!ret) {
ret = inode_ref_info(inum, parent ? parent+1 : 0, fs_root, path,
&found_key);
if (ret < 0)
Expand Down Expand Up @@ -1288,10 +1288,8 @@ static int iterate_irefs(u64 inum, struct btrfs_root *fs_root,
(unsigned long long)found_key.objectid,
(unsigned long long)fs_root->objectid);
ret = iterate(parent, iref, eb, ctx);
if (ret) {
free_extent_buffer(eb);
if (ret)
break;
}
len = sizeof(*iref) + name_len;
iref = (struct btrfs_inode_ref *)((char *)iref + len);
}
Expand Down

0 comments on commit 0cefa04

Please sign in to comment.