Btrfs: return code checking

Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
Chris Mason 2007-02-28 16:35:06 -05:00 committed by David Woodhouse
parent af86d07efe
commit aa5d6bed25
4 changed files with 268 additions and 227 deletions

View file

@ -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];