| summaryrefslogtreecommitdiff |
Side-by-side diff
Diffstat (limited to 'patches.suse/btrfs-REVERT-increase-the-global-block-reserve-estim.patch') (more/less context) (ignore whitespace changes)
| -rw-r--r-- | patches.suse/btrfs-REVERT-increase-the-global-block-reserve-estim.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/patches.suse/btrfs-REVERT-increase-the-global-block-reserve-estim.patch b/patches.suse/btrfs-REVERT-increase-the-global-block-reserve-estim.patch new file mode 100644 index 0000000..91d27da --- a/dev/null +++ b/patches.suse/btrfs-REVERT-increase-the-global-block-reserve-estim.patch @@ -0,0 +1,39 @@ +From: David Sterba <dsterba@suse.cz> +Date: Sat, 24 Mar 2012 01:01:49 +0100 +Subject: [PATCH] Revert "Btrfs: increase the global block reserve estimates" +Patch-mainline: 3.3 + +This reverts commit 5500cdbe14d7435e04f66ff3cfb8ecd8b8e44ebf. + +Reason: causes early ENOSPC + + 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. + + Signed-off-by: Liu Bo <liubo2009@cn.fujitsu.com> + Signed-off-by: Chris Mason <chris.mason@oracle.com> + +Signed-off-by: David Sterba <dsterba@suse.cz> +--- + 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 37e0a80..f6f584f 100644 +--- 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); + } +-- +1.7.6.233.gd79bc + |