projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
443b376
)
ceph: fix crush device 'out' threshold to 1.0, not 0.1
author
Sage Weil
<sage@newdream.net>
Mon, 5 Jul 2010 16:44:17 +0000
(09:44 -0700)
committer
Sage Weil
<sage@newdream.net>
Mon, 5 Jul 2010 16:44:17 +0000
(09:44 -0700)
Fix a typo that made any OSD weighted between 0.1 and 1.0 effectively
weighted as 1.0 (fully in).
Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/crush/mapper.c
patch
|
blob
|
history
diff --git
a/fs/ceph/crush/mapper.c
b/fs/ceph/crush/mapper.c
index
374266b
..
a4eec13
100644
(file)
--- a/
fs/ceph/crush/mapper.c
+++ b/
fs/ceph/crush/mapper.c
@@
-264,7
+264,7
@@
static int crush_bucket_choose(struct crush_bucket *in, int x, int r)
*/
static int is_out(struct crush_map *map, __u32 *weight, int item, int x)
{
- if (weight[item] >= 0x1000)
+ if (weight[item] >= 0x1000
0
)
return 0;
if (weight[item] == 0)
return 1;