summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/ceph/crush/mapper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ceph/crush/mapper.c b/net/ceph/crush/mapper.c
index 0b2646a9cc50..9887fce04219 100644
--- a/net/ceph/crush/mapper.c
+++ b/net/ceph/crush/mapper.c
@@ -858,7 +858,7 @@ void crush_init_workspace(const struct crush_map *map, void *v)
858 * set the pointer first and then reserve the space for it to 858 * set the pointer first and then reserve the space for it to
859 * point to by incrementing the point. 859 * point to by incrementing the point.
860 */ 860 */
861 v += sizeof(struct crush_work *); 861 v += sizeof(struct crush_work);
862 w->work = v; 862 w->work = v;
863 v += map->max_buckets * sizeof(struct crush_work_bucket *); 863 v += map->max_buckets * sizeof(struct crush_work_bucket *);
864 for (b = 0; b < map->max_buckets; ++b) { 864 for (b = 0; b < map->max_buckets; ++b) {