diff options
author | Sage Weil <sage@newdream.net> | 2010-07-05 18:44:17 +0200 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2010-07-05 18:44:17 +0200 |
commit | 153a10939ea6e42e9c0115b0645060d0d7bb4697 (patch) | |
tree | 6d6362aebbe5e0450c0bb1eed27cdb4cee420f2a /fs | |
parent | ceph: fix caps usage accounting for import (non-reserved) case (diff) | |
download | linux-153a10939ea6e42e9c0115b0645060d0d7bb4697.tar.xz linux-153a10939ea6e42e9c0115b0645060d0d7bb4697.zip |
ceph: fix crush device 'out' threshold to 1.0, not 0.1
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ceph/crush/mapper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/crush/mapper.c b/fs/ceph/crush/mapper.c index 374266bddd9c..a4eec133258e 100644 --- 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] >= 0x10000) return 0; if (weight[item] == 0) return 1; |