projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1389053
)
btrfs: return ENOMEM if path allocation fails in btrfs_cross_ref_exist
author
Su Yue
<
[email protected]
>
Wed, 30 May 2018 06:49:10 +0000
(14:49 +0800)
committer
David Sterba
<
[email protected]
>
Wed, 30 May 2018 15:33:58 +0000
(17:33 +0200)
The error code does not match the reason of failure and may confuse the
callers.
Signed-off-by: Su Yue <
[email protected]
>
Reviewed-by: Nikolay Borisov <
[email protected]
>
Reviewed-by: David Sterba <
[email protected]
>
Signed-off-by: David Sterba <
[email protected]
>
fs/btrfs/extent-tree.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/extent-tree.c
b/fs/btrfs/extent-tree.c
index 9a65df02a13f65ca421d6119b52afc6f3570000b..3d9fe58c0080db89f4933f162f8bf7f8d6df1c85 100644
(file)
--- a/
fs/btrfs/extent-tree.c
+++ b/
fs/btrfs/extent-tree.c
@@
-3272,7
+3272,7
@@
int btrfs_cross_ref_exist(struct btrfs_root *root, u64 objectid, u64 offset,
path = btrfs_alloc_path();
if (!path)
- return -ENO
ENT
;
+ return -ENO
MEM
;
do {
ret = check_committed_ref(root, path, objectid,