mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 21:38:32 +08:00
Btrfs: Avoid 64 bit div for RAID10
Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
parent
3b951516ed
commit
7bf3b490df
@ -724,7 +724,7 @@ again:
|
||||
if (type & (BTRFS_BLOCK_GROUP_RAID1 | BTRFS_BLOCK_GROUP_DUP))
|
||||
*num_bytes = calc_size;
|
||||
else if (type & BTRFS_BLOCK_GROUP_RAID10)
|
||||
*num_bytes = calc_size * num_stripes / sub_stripes;
|
||||
*num_bytes = calc_size * (num_stripes / sub_stripes);
|
||||
else
|
||||
*num_bytes = calc_size * num_stripes;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user