Commit 7ba0487c authored by Ilya Dryomov's avatar Ilya Dryomov

crush: fix dprintk compilation

The syntax error was not noticed because dprintk is a macro
and the code is discarded by default.

Reflects ceph.git commit f29b840c64a933b2cb13e3da6f3d785effd73a57.
Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
parent 98ba6af7
...@@ -105,7 +105,7 @@ static int bucket_perm_choose(const struct crush_bucket *bucket, ...@@ -105,7 +105,7 @@ static int bucket_perm_choose(const struct crush_bucket *bucket,
/* calculate permutation up to pr */ /* calculate permutation up to pr */
for (i = 0; i < work->perm_n; i++) for (i = 0; i < work->perm_n; i++)
dprintk(" perm_choose have %d: %d\n", i, bucket->perm[i]); dprintk(" perm_choose have %d: %d\n", i, work->perm[i]);
while (work->perm_n <= pr) { while (work->perm_n <= pr) {
unsigned int p = work->perm_n; unsigned int p = work->perm_n;
/* no point in swapping the final entry */ /* no point in swapping the final entry */
...@@ -122,7 +122,7 @@ static int bucket_perm_choose(const struct crush_bucket *bucket, ...@@ -122,7 +122,7 @@ static int bucket_perm_choose(const struct crush_bucket *bucket,
work->perm_n++; work->perm_n++;
} }
for (i = 0; i < bucket->size; i++) for (i = 0; i < bucket->size; i++)
dprintk(" perm_choose %d: %d\n", i, bucket->perm[i]); dprintk(" perm_choose %d: %d\n", i, work->perm[i]);
s = work->perm[pr]; s = work->perm[pr];
out: out:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment