diff options
| author | 2021-07-26 14:15:24 +0200 | |
|---|---|---|
| committer | 2021-08-23 13:19:03 +0200 | |
| commit | d58ede8d1d9fb0f70d6aa51fa6550d2d580f8c17 (patch) | |
| tree | 574b87ff59d57aa5cdd6c41af428d76faca992ce /fs/btrfs/tree-log.c | |
| parent | btrfs: merge alloc_device helpers (diff) | |
| download | linux-rng-d58ede8d1d9fb0f70d6aa51fa6550d2d580f8c17.tar.xz linux-rng-d58ede8d1d9fb0f70d6aa51fa6550d2d580f8c17.zip | |
btrfs: simplify data stripe calculation helpers
There are two helpers doing the same calculations based on nparity and
ncopies. calc_data_stripes can be simplified into one expression, so far
we don't have profile with both copies and parity, so there's no
effective change. calc_stripe_length should reuse the helper and not
repeat the same calculation.
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/tree-log.c')
0 files changed, 0 insertions, 0 deletions
