diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-02-28 16:35:06 -0500 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-02-28 16:35:06 -0500 |
commit | aa5d6bed255d7f8c655a8f10d760f4247bc8385c (patch) | |
tree | ddd4ad69b490fc49e23097f5d783ef90ea81cf5f /fs/btrfs/extent-tree.c | |
parent | af86d07efe83e2f2da3658702a720bc48b1a6d78 (diff) |
Btrfs: return code checking
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r-- | fs/btrfs/extent-tree.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 26321524c186..97715bae7847 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c | |||
@@ -125,6 +125,11 @@ check_failed: | |||
125 | ins->flags = 0; | 125 | ins->flags = 0; |
126 | start_found = 0; | 126 | start_found = 0; |
127 | ret = search_slot(root, ins, &path, 0); | 127 | ret = search_slot(root, ins, &path, 0); |
128 | if (ret < 0) { | ||
129 | release_path(root, &path); | ||
130 | return ret; | ||
131 | } | ||
132 | |||
128 | while (1) { | 133 | while (1) { |
129 | l = &path.nodes[0]->leaf; | 134 | l = &path.nodes[0]->leaf; |
130 | slot = path.slots[0]; | 135 | slot = path.slots[0]; |