Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Ilya Dryomov <idryomov@gmail.com>

+2 -2
+2 -2
net/ceph/crush/mapper.c
··· 105 105 106 106 /* calculate permutation up to pr */ 107 107 for (i = 0; i < work->perm_n; i++) 108 - dprintk(" perm_choose have %d: %d\n", i, bucket->perm[i]); 108 + dprintk(" perm_choose have %d: %d\n", i, work->perm[i]); 109 109 while (work->perm_n <= pr) { 110 110 unsigned int p = work->perm_n; 111 111 /* no point in swapping the final entry */ ··· 122 122 work->perm_n++; 123 123 } 124 124 for (i = 0; i < bucket->size; i++) 125 - dprintk(" perm_choose %d: %d\n", i, bucket->perm[i]); 125 + dprintk(" perm_choose %d: %d\n", i, work->perm[i]); 126 126 127 127 s = work->perm[pr]; 128 128 out: