Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 128525
b: refs/heads/master
c: c549228
h: refs/heads/master
i:
  128523: aa05919
v: v3
  • Loading branch information
Yan authored and Chris Mason committed Sep 25, 2008
1 parent bd86a57 commit f00bad9
Show file tree
Hide file tree
Showing 2 changed files with 5 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: b293f02e1423f2099744f3ade23ddd83b65321fc
refs/heads/master: c549228ff63498025bf0b065c5a5909a06f21647
6 changes: 4 additions & 2 deletions trunk/fs/btrfs/extent-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ static int pin_down_bytes(struct btrfs_root *root, u64 bytenr, u32 num_bytes,
root->fs_info->running_transaction->transid;
if (btrfs_header_generation(buf) == transid) {
free_extent_buffer(buf);
return 0;
return 1;
}
}
free_extent_buffer(buf);
Expand Down Expand Up @@ -774,7 +774,9 @@ static int __free_extent(struct btrfs_trans_handle *trans, struct btrfs_root

if (pin) {
ret = pin_down_bytes(root, bytenr, num_bytes, 0);
BUG_ON(ret);
if (ret > 0)
mark_free = 1;
BUG_ON(ret < 0);
}

/* block accounting for super block */
Expand Down

0 comments on commit f00bad9

Please sign in to comment.