Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 223070
b: refs/heads/master
c: 7e1fea7
h: refs/heads/master
v: v3
  • Loading branch information
Josef Bacik committed Dec 9, 2010
1 parent dcc1d94 commit 666f861
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: b8399dee478db7939cd0d6fda8ecacddf2facd03
refs/heads/master: 7e1fea731da8c1b5fcf5d8e157befd389b030760
6 changes: 5 additions & 1 deletion trunk/fs/btrfs/orphan.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,12 @@ int btrfs_del_orphan_item(struct btrfs_trans_handle *trans,
return -ENOMEM;

ret = btrfs_search_slot(trans, root, &key, path, -1, 1);
if (ret)
if (ret < 0)
goto out;
if (ret) {
ret = -ENOENT;
goto out;
}

ret = btrfs_del_item(trans, root, path);

Expand Down

0 comments on commit 666f861

Please sign in to comment.