Skip to content

Commit

Permalink
ceph: fix crush device 'out' threshold to 1.0, not 0.1
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sage Weil committed Jul 5, 2010
1 parent 443b376 commit 153a109
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ceph/crush/mapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -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] >= 0x10000)
return 0;
if (weight[item] == 0)
return 1;
Expand Down

0 comments on commit 153a109

Please sign in to comment.