Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 168554
b: refs/heads/master
c: 33b2580
h: refs/heads/master
v: v3
  • Loading branch information
Chris Mason committed Nov 11, 2009
1 parent ba624d9 commit 495f973
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f5a84ee3cdd88d96b7bcede10af58598ad8d52a7
refs/heads/master: 33b258086441dd07e00133c79fcd8cbc6a76d737
4 changes: 2 additions & 2 deletions trunk/fs/btrfs/extent-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -2976,10 +2976,10 @@ static int maybe_allocate_chunk(struct btrfs_root *root,

free_space = btrfs_super_total_bytes(disk_super);
/*
* we allow the metadata to grow to a max of either 5gb or 5% of the
* we allow the metadata to grow to a max of either 10gb or 5% of the
* space in the volume.
*/
min_metadata = min((u64)5 * 1024 * 1024 * 1024,
min_metadata = min((u64)10 * 1024 * 1024 * 1024,
div64_u64(free_space * 5, 100));
if (info->total_bytes >= min_metadata) {
spin_unlock(&info->lock);
Expand Down

0 comments on commit 495f973

Please sign in to comment.