projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b95151
)
Btrfs: Avoid 64 bit div for RAID10
author
Chris Mason
<chris.mason@oracle.com>
Thu, 17 Apr 2008 15:58:30 +0000
(11:58 -0400)
committer
Chris Mason
<chris.mason@oracle.com>
Thu, 25 Sep 2008 15:04:02 +0000
(11:04 -0400)
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/volumes.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/volumes.c
b/fs/btrfs/volumes.c
index
0e658c1
..
c11b6fd
100644
(file)
--- 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;