projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
sparc64: Fix NMI startup bug which also breaks perf.
[firefly-linux-kernel-4.4.55.git]
/
fs
/
btrfs
/
orphan.c
diff --git
a/fs/btrfs/orphan.c
b/fs/btrfs/orphan.c
index 79cba5fbc28ef8061e2d599110a3a525216a7bfd..f8be250963a09a283b8ec4ab04bcb1c3a962427e 100644
(file)
--- 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);