Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 189470
b: refs/heads/master
c: 0cad8a1
h: refs/heads/master
v: v3
  • Loading branch information
Josef Bacik authored and Chris Mason committed Mar 31, 2010
1 parent 5d0d466 commit 73bc4a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: 287a0ab91d25ca982f895a76402e5893b47ed7a6
refs/heads/master: 0cad8a1130f77c7c445e3298c0e3593b3c0ef439
4 changes: 3 additions & 1 deletion trunk/fs/btrfs/volumes.c
Original file line number Diff line number Diff line change
Expand Up @@ -2244,8 +2244,10 @@ static int __btrfs_alloc_chunk(struct btrfs_trans_handle *trans,
do_div(calc_size, stripe_len);
calc_size *= stripe_len;
}

/* we don't want tiny stripes */
calc_size = max_t(u64, min_stripe_size, calc_size);
if (!looped)
calc_size = max_t(u64, min_stripe_size, calc_size);

do_div(calc_size, stripe_len);
calc_size *= stripe_len;
Expand Down

0 comments on commit 73bc4a8

Please sign in to comment.