History

Btrfs: increase the global block reserve estimates

When doing IO with large amounts of data fragmentation, the global block reserve calulations are too low. This increases them to avoid ENOSPC crashes.

Liu Bo committed 14 years ago

Commit 5500cdb1 parent 50653191 file · +1 −1Browse files

Unified · Split

fs/btrfs/extent-tree.c+1−1
@@ -4108,7 +4108,7 @@ static u64 calc_global_metadata_size(struct btrfs_fs_info *fs_info) · 4107 unmodified lines
41084108 num_bytes += div64_u64(data_used + meta_used, 50);
41094109
41104110 if (num_bytes * 3 > meta_used)
4111− num_bytes = div64_u64(meta_used, 3);
4111+ num_bytes = div64_u64(meta_used, 3) * 2;
41124112
41134113 return ALIGN(num_bytes, fs_info->extent_root->leafsize << 10);
41144114 }