Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 332566
b: refs/heads/master
c: 0433f20
h: refs/heads/master
v: v3
  • Loading branch information
Tsutomu Itoh authored and Chris Mason committed Oct 4, 2012
1 parent df69d53 commit ae86e11
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 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: 90abccf2c6e6e9c5a5d519eaed95292afa30aa11
refs/heads/master: 0433f20d436fd040013e5a419a2e3d732d618a41
14 changes: 5 additions & 9 deletions trunk/fs/btrfs/disk-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,21 +222,17 @@ static struct extent_map *btree_get_extent(struct inode *inode,

free_extent_map(em);
em = lookup_extent_mapping(em_tree, start, len);
if (em) {
ret = 0;
} else {
em = lookup_extent_mapping(em_tree, failed_start,
failed_len);
ret = -EIO;
if (!em) {
lookup_extent_mapping(em_tree, failed_start,
failed_len);
em = ERR_PTR(-EIO);
}
} else if (ret) {
free_extent_map(em);
em = NULL;
em = ERR_PTR(ret);
}
write_unlock(&em_tree->lock);

if (ret)
em = ERR_PTR(ret);
out:
return em;
}
Expand Down

0 comments on commit ae86e11

Please sign in to comment.