Btrfs: Avoid 64 bit div for RAID10

Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
Chris Mason 2008-04-17 11:58:30 -04:00
parent 3b951516ed
commit 7bf3b490df

View File

@ -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;