commit | aa5d6bed255d7f8c655a8f10d760f4247bc8385c | [log] [tgz] |
---|---|---|
author | Chris Mason <chris.mason@oracle.com> | Wed Feb 28 16:35:06 2007 -0500 |
committer | David Woodhouse <dwmw2@hera.kernel.org> | Wed Feb 28 16:35:06 2007 -0500 |
tree | ddd4ad69b490fc49e23097f5d783ef90ea81cf5f | |
parent | af86d07efe83e2f2da3658702a720bc48b1a6d78 [diff] [blame] |
Btrfs: return code checking Signed-off-by: Chris Mason <chris.mason@oracle.com>
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 2632152..97715ba 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c
@@ -125,6 +125,11 @@ 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];