aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs')
-rw-r--r--fs/btrfs/extent-tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index 2a4cdceeb57..8d1fd6dc22a 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -2976,10 +2976,10 @@ static int maybe_allocate_chunk(struct btrfs_root *root,
2976 2976
2977 free_space = btrfs_super_total_bytes(disk_super); 2977 free_space = btrfs_super_total_bytes(disk_super);
2978 /* 2978 /*
2979 * we allow the metadata to grow to a max of either 5gb or 5% of the 2979 * we allow the metadata to grow to a max of either 10gb or 5% of the
2980 * space in the volume. 2980 * space in the volume.
2981 */ 2981 */
2982 min_metadata = min((u64)5 * 1024 * 1024 * 1024, 2982 min_metadata = min((u64)10 * 1024 * 1024 * 1024,
2983 div64_u64(free_space * 5, 100)); 2983 div64_u64(free_space * 5, 100));
2984 if (info->total_bytes >= min_metadata) { 2984 if (info->total_bytes >= min_metadata) {
2985 spin_unlock(&info->lock); 2985 spin_unlock(&info->lock);