diff options
author | Chris Mason <chris.mason@oracle.com> | 2008-04-17 11:58:30 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:04:02 -0400 |
commit | 7bf3b490dfa57bdef5892dffa5021469a0cd2b7f (patch) | |
tree | 2366e7a82e55c0a3d43bb365653a46d3e1779a8b | |
parent | 3b951516ed703af0f6d82053937655ad69b60864 (diff) | |
download | kernel_samsung_smdk4412-7bf3b490dfa57bdef5892dffa5021469a0cd2b7f.zip kernel_samsung_smdk4412-7bf3b490dfa57bdef5892dffa5021469a0cd2b7f.tar.gz kernel_samsung_smdk4412-7bf3b490dfa57bdef5892dffa5021469a0cd2b7f.tar.bz2 |
Btrfs: Avoid 64 bit div for RAID10
Signed-off-by: Chris Mason <chris.mason@oracle.com>
-rw-r--r-- | fs/btrfs/volumes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 0e658c1..c11b6fd 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; |