Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 262246
b: refs/heads/master
c: 7e016a0
h: refs/heads/master
v: v3
  • Loading branch information
Li Zefan authored and Chris Mason committed Aug 1, 2011
1 parent 3986a16 commit c30cb0e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 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: 85d85a743da894029723e002eb556ceeebc03658
refs/heads/master: 7e016a038e829c7d1271e1d57b8002860bbdf0db
17 changes: 3 additions & 14 deletions trunk/fs/btrfs/extent_map.c
Original file line number Diff line number Diff line change
Expand Up @@ -379,23 +379,12 @@ struct extent_map *search_extent_mapping(struct extent_map_tree *tree,
em = rb_entry(next, struct extent_map, rb_node);
goto found;
}
if (!rb_node) {
em = NULL;
goto out;
}
if (IS_ERR(rb_node)) {
em = ERR_CAST(rb_node);
goto out;
}
em = rb_entry(rb_node, struct extent_map, rb_node);
goto found;

em = NULL;
goto out;
if (!rb_node)
return NULL;

em = rb_entry(rb_node, struct extent_map, rb_node);
found:
atomic_inc(&em->refs);
out:
return em;
}

Expand Down

0 comments on commit c30cb0e

Please sign in to comment.