projects
/
unionfs-2.6.39.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7cb14d8
)
Revert "Btrfs: increase the global block reserve estimates"
author
Chris Mason
<chris.mason@oracle.com>
Thu, 12 Apr 2012 17:46:48 +0000
(13:46 -0400)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Sun, 22 Apr 2012 22:38:56 +0000
(15:38 -0700)
commit
8e62c2de6e23e5c1fee04f59de51b54cc2868ca5
upstream.
This reverts commit
5500cdbe14d7435e04f66ff3cfb8ecd8b8e44ebf
.
We've had a number of complaints of early enospc that bisect down
to this patch. We'll hae to fix the reservations differently.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/btrfs/extent-tree.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/extent-tree.c
b/fs/btrfs/extent-tree.c
index 37e0a800d34e3a867437a9c1b2072e51a7ccc743..f6f584fd549421fa0071a908dde0fa8c99987552 100644
(file)
--- a/
fs/btrfs/extent-tree.c
+++ b/
fs/btrfs/extent-tree.c
@@
-4110,7
+4110,7
@@
static u64 calc_global_metadata_size(struct btrfs_fs_info *fs_info)
num_bytes += div64_u64(data_used + meta_used, 50);
if (num_bytes * 3 > meta_used)
- num_bytes = div64_u64(meta_used, 3)
* 2
;
+ num_bytes = div64_u64(meta_used, 3);
return ALIGN(num_bytes, fs_info->extent_root->leafsize << 10);
}