diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/extent-tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index a84420491c11..ace5e8cef03e 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c | |||
@@ -4205,7 +4205,7 @@ static u64 calc_global_metadata_size(struct btrfs_fs_info *fs_info) | |||
4205 | num_bytes += div64_u64(data_used + meta_used, 50); | 4205 | num_bytes += div64_u64(data_used + meta_used, 50); |
4206 | 4206 | ||
4207 | if (num_bytes * 3 > meta_used) | 4207 | if (num_bytes * 3 > meta_used) |
4208 | num_bytes = div64_u64(meta_used, 3) * 2; | 4208 | num_bytes = div64_u64(meta_used, 3); |
4209 | 4209 | ||
4210 | return ALIGN(num_bytes, fs_info->extent_root->leafsize << 10); | 4210 | return ALIGN(num_bytes, fs_info->extent_root->leafsize << 10); |
4211 | } | 4211 | } |