Skip to content

Commit

Permalink
Revert "Btrfs: increase the global block reserve estimates"
Browse files Browse the repository at this point in the history
This reverts commit 5500cdb.

We've had a number of complaints of early enospc that bisect down
to this patch.  We'll hae to fix the reservations differently.

CC: stable@kernel.org
Signed-off-by: Chris Mason <chris.mason@oracle.com>
  • Loading branch information
Chris Mason committed Apr 12, 2012
1 parent bc3f116 commit 8e62c2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/btrfs/extent-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -4205,7 +4205,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);
}
Expand Down

0 comments on commit 8e62c2d

Please sign in to comment.