Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 262224
b: refs/heads/master
c: 1e5063d
h: refs/heads/master
v: v3
  • Loading branch information
Mark Fasheh committed Jul 14, 2011
1 parent 6c2068a commit df3a588
Show file tree
Hide file tree
Showing 2 changed files with 10 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: d8926bb3badd36670fecf2de4a062c78bc37430b
refs/heads/master: 1e5063d093b5f024ae35bf835ca07463de2c1a1f
12 changes: 9 additions & 3 deletions trunk/fs/btrfs/tree-log.c
Original file line number Diff line number Diff line change
Expand Up @@ -1617,7 +1617,8 @@ static int replay_one_buffer(struct btrfs_root *log, struct extent_buffer *eb,
return 0;

path = btrfs_alloc_path();
BUG_ON(!path);
if (!path)
return -ENOMEM;

nritems = btrfs_header_nritems(eb);
for (i = 0; i < nritems; i++) {
Expand Down Expand Up @@ -1723,7 +1724,9 @@ static noinline int walk_down_log_tree(struct btrfs_trans_handle *trans,
return -ENOMEM;

if (*level == 1) {
wc->process_func(root, next, wc, ptr_gen);
ret = wc->process_func(root, next, wc, ptr_gen);
if (ret)
return ret;

path->slots[*level]++;
if (wc->free) {
Expand Down Expand Up @@ -1788,8 +1791,11 @@ static noinline int walk_up_log_tree(struct btrfs_trans_handle *trans,
parent = path->nodes[*level + 1];

root_owner = btrfs_header_owner(parent);
wc->process_func(root, path->nodes[*level], wc,
ret = wc->process_func(root, path->nodes[*level], wc,
btrfs_header_generation(path->nodes[*level]));
if (ret)
return ret;

if (wc->free) {
struct extent_buffer *next;

Expand Down

0 comments on commit df3a588

Please sign in to comment.