summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/orphan.c
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2010-12-17 13:29:07 -0500
committerJ. Bruce Fields <bfields@redhat.com>2010-12-17 13:29:07 -0500
commitec66ee3797e5848356cf593c6ec7aabf30a00cf1 (patch)
tree7ed5c84cc914644ffa1cd1b6a2b45db53fc224e8 /fs/btrfs/orphan.c
parent1205065764f2eda3216ebe213143f69891ee3460 (diff)
parentb0c3844d8af6b9f3f18f31e1b0502fbefa2166be (diff)
downloadblackbird-op-linux-ec66ee3797e5848356cf593c6ec7aabf30a00cf1.tar.gz
blackbird-op-linux-ec66ee3797e5848356cf593c6ec7aabf30a00cf1.zip
Merge commit 'v2.6.37-rc6' into for-2.6.38
Diffstat (limited to 'fs/btrfs/orphan.c')
-rw-r--r--fs/btrfs/orphan.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/btrfs/orphan.c b/fs/btrfs/orphan.c
index 79cba5fbc28e..f8be250963a0 100644
--- a/fs/btrfs/orphan.c
+++ b/fs/btrfs/orphan.c
@@ -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);
OpenPOWER on IntegriCloud