diff options
-rw-r--r-- | fs/btrfs/volumes.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index bf3bec3e4130..9bf1f581b872 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c | |||
@@ -2244,8 +2244,10 @@ again: | |||
2244 | do_div(calc_size, stripe_len); | 2244 | do_div(calc_size, stripe_len); |
2245 | calc_size *= stripe_len; | 2245 | calc_size *= stripe_len; |
2246 | } | 2246 | } |
2247 | |||
2247 | /* we don't want tiny stripes */ | 2248 | /* we don't want tiny stripes */ |
2248 | calc_size = max_t(u64, min_stripe_size, calc_size); | 2249 | if (!looped) |
2250 | calc_size = max_t(u64, min_stripe_size, calc_size); | ||
2249 | 2251 | ||
2250 | do_div(calc_size, stripe_len); | 2252 | do_div(calc_size, stripe_len); |
2251 | calc_size *= stripe_len; | 2253 | calc_size *= stripe_len; |