Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 332567
b: refs/heads/master
c: b4f359a
h: refs/heads/master
i:
  332565: df69d53
  332563: b141493
  332559: cd630e9
v: v3
  • Loading branch information
Tsutomu Itoh authored and Chris Mason committed Oct 4, 2012
1 parent ae86e11 commit b7bb3e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 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: 0433f20d436fd040013e5a419a2e3d732d618a41
refs/heads/master: b4f359ab065b9c6c132124557d23e90e2e8504be
8 changes: 1 addition & 7 deletions trunk/fs/btrfs/disk-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,16 +217,10 @@ static struct extent_map *btree_get_extent(struct inode *inode,
write_lock(&em_tree->lock);
ret = add_extent_mapping(em_tree, em);
if (ret == -EEXIST) {
u64 failed_start = em->start;
u64 failed_len = em->len;

free_extent_map(em);
em = lookup_extent_mapping(em_tree, start, len);
if (!em) {
lookup_extent_mapping(em_tree, failed_start,
failed_len);
if (!em)
em = ERR_PTR(-EIO);
}
} else if (ret) {
free_extent_map(em);
em = ERR_PTR(ret);
Expand Down

0 comments on commit b7bb3e1

Please sign in to comment.