4e773f9 btrfs-progs: simplify assignment of number of RAID stripes

1 file Authored by Johannes Thumshirn 4 years ago, Committed by David Sterba 4 years ago,
1 file changed. 8 lines added. 12 lines removed.
    btrfs-progs: simplify assignment of number of RAID stripes
    
    Simplify the assignment of the used number of RAID stripes in chunk
    allocation.
    
    For RAID levels 0, 5, 6 and 10 we first assigned it to the number of
    devices in the file-system and afterwards capped it to the upper bound of
    max_stripes. We can just use the max() macro for this.
    
    This will help in furhter refactorings.
    
    Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
    Signed-off-by: David Sterba <dsterba@suse.com>
    
        
file modified
+8 -12