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) | |
download | lwn-aa5d6bed255d7f8c655a8f10d760f4247bc8385c.tar.gz lwn-aa5d6bed255d7f8c655a8f10d760f4247bc8385c.zip |
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: ins->flags = 0; start_found = 0; ret = search_slot(root, ins, &path, 0); + if (ret < 0) { + release_path(root, &path); + return ret; + } + while (1) { l = &path.nodes[0]->leaf; slot = path.slots[0]; |