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:
139f807
)
Btrfs: return error code in btrfs_check_trunc_cache_free_space()
author
Wei Yongjun
<
[email protected]
>
Tue, 21 May 2013 02:39:21 +0000
(
02:39
+0000)
committer
Josef Bacik
<
[email protected]
>
Fri, 14 Jun 2013 15:29:56 +0000
(11:29 -0400)
Fix to return error code instead always return 0 from function
btrfs_check_trunc_cache_free_space().
Introduced by commit
7b61cd92242542944fc27024900c495a6a7b3396
(Btrfs: don't use global block reservation for inode cache truncation)
Signed-off-by: Wei Yongjun <
[email protected]
>
Reviewed-by: Miao Xie <
[email protected]
>
Signed-off-by: Josef Bacik <
[email protected]
>
fs/btrfs/free-space-cache.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/free-space-cache.c
b/fs/btrfs/free-space-cache.c
index ed26a5793cf77db17c2b35fc58ae80535767eb79..75172853d7139a0d136d95abc420df4ab2e816ea 100644
(file)
--- a/
fs/btrfs/free-space-cache.c
+++ b/
fs/btrfs/free-space-cache.c
@@
-213,7
+213,7
@@
int btrfs_check_trunc_cache_free_space(struct btrfs_root *root,
else
ret = 0;
spin_unlock(&rsv->lock);
- return
0
;
+ return
ret
;
}
int btrfs_truncate_free_space_cache(struct btrfs_root *root,