summaryrefslogtreecommitdiffstats
path: root/src/crush
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2017-04-27 19:32:21 +0200
committerGitHub <noreply@github.com>2017-04-27 19:32:21 +0200
commit528c6e067a90b0d119c10348b5c785961d8618e9 (patch)
treed4b2c815f02cb68f60dbee1f4b10f9d3ae7bc4e3 /src/crush
parentMerge pull request #14814 from neha-ojha/wip-osd-filestore-default (diff)
parentcrush: crush_init_workspace starts with struct crush_work (diff)
downloadceph-528c6e067a90b0d119c10348b5c785961d8618e9.tar.xz
ceph-528c6e067a90b0d119c10348b5c785961d8618e9.zip
Merge pull request #14696 from dachary/wip-crush-workspace
crush: crush_init_workspace starts with struct crush_work Reviewed-by: Sage Weil <sage@redhat.com>
Diffstat (limited to 'src/crush')
-rw-r--r--src/crush/mapper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crush/mapper.c b/src/crush/mapper.c
index 9fc06e89a31..c71b6140d8c 100644
--- a/src/crush/mapper.c
+++ b/src/crush/mapper.c
@@ -849,7 +849,7 @@ void crush_init_workspace(const struct crush_map *m, void *v) {
struct crush_work *w = (struct crush_work *)v;
char *point = (char *)v;
__s32 b;
- point += sizeof(struct crush_work *);
+ point += sizeof(struct crush_work);
w->work = (struct crush_work_bucket **)point;
point += m->max_buckets * sizeof(struct crush_work_bucket *);
for (b = 0; b < m->max_buckets; ++b) {