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

drbd: use bitmap_parse instead of __bitmap_parse

The buffer 'sc.cpu_mask' is a kernel buffer. If bitmap_parse is used
instead of __bitmap_parse the extra parameter that indicates a kernel
buffer is not needed.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Lars Ellenberg <drbd-dev@lists.linbit.com>
Cc: Philipp Reisner <philipp.reisner@linbit.com>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>

+3 -3
+3 -3
drivers/block/drbd/drbd_main.c
··· 2637 2637 /* silently ignore cpu mask on UP kernel */ 2638 2638 if (nr_cpu_ids > 1 && res_opts->cpu_mask[0] != 0) { 2639 2639 /* FIXME: Get rid of constant 32 here */ 2640 - err = __bitmap_parse(res_opts->cpu_mask, 32, 0, 2641 - cpumask_bits(new_cpu_mask), nr_cpu_ids); 2640 + err = bitmap_parse(res_opts->cpu_mask, 32, 2641 + cpumask_bits(new_cpu_mask), nr_cpu_ids); 2642 2642 if (err) { 2643 - conn_warn(tconn, "__bitmap_parse() failed with %d\n", err); 2643 + conn_warn(tconn, "bitmap_parse() failed with %d\n", err); 2644 2644 /* retcode = ERR_CPU_MASK_PARSE; */ 2645 2645 goto fail; 2646 2646 }