From: Chris Mason Date: Thu, 17 Apr 2008 15:58:30 +0000 (-0400) Subject: Btrfs: Avoid 64 bit div for RAID10 X-Git-Tag: v2.6.29-rc1~27^2~9^2~55^2~56^2~30^2~224 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=7bf3b490dfa57bdef5892dffa5021469a0cd2b7f;p=linux-2.6-omap-h63xx.git Btrfs: Avoid 64 bit div for RAID10 Signed-off-by: Chris Mason --- diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 0e658c1d821..c11b6fd408a 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -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;