projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f699d3
)
Btrfs: Fix space checking during fs resize
author
Daniel J Blueman
<daniel@quora.org>
Fri, 27 Apr 2012 16:41:46 +0000
(12:41 -0400)
committer
Chris Mason
<chris.mason@oracle.com>
Fri, 27 Apr 2012 17:55:14 +0000
(13:55 -0400)
Fix out-of-space checking, addressing a warning and potential resource
leak when resizing the filesystem down while allocating blocks.
Signed-off-by: Daniel J Blueman <daniel@quora.org>
Reviewed-by: Josef Bacik <josef@redhat.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/relocation.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/relocation.c
b/fs/btrfs/relocation.c
index 5a105a086acfea61bcb3b326335b8371dda00bfd..646ee21bb035d9ad8a4b1628e6883544c0603ea6 100644
(file)
--- a/
fs/btrfs/relocation.c
+++ b/
fs/btrfs/relocation.c
@@
-3813,7
+3813,7
@@
restart:
ret = btrfs_block_rsv_check(rc->extent_root, rc->block_rsv, 5);
if (ret < 0) {
- if (ret != -E
AGAIN
) {
+ if (ret != -E
NOSPC
) {
err = ret;
WARN_ON(1);
break;