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

drivers/block/drbd/drbd_nl.c: 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>

authored by

H Hartley Sweeten and committed by
Jens Axboe
ddad9ef5 e2a5429f

+2 -2
+2 -2
drivers/block/drbd/drbd_nl.c
··· 1829 1829 1830 1830 /* silently ignore cpu mask on UP kernel */ 1831 1831 if (nr_cpu_ids > 1 && sc.cpu_mask[0] != 0) { 1832 - err = __bitmap_parse(sc.cpu_mask, 32, 0, 1832 + err = bitmap_parse(sc.cpu_mask, 32, 1833 1833 cpumask_bits(new_cpu_mask), nr_cpu_ids); 1834 1834 if (err) { 1835 - dev_warn(DEV, "__bitmap_parse() failed with %d\n", err); 1835 + dev_warn(DEV, "bitmap_parse() failed with %d\n", err); 1836 1836 retcode = ERR_CPU_MASK_PARSE; 1837 1837 goto fail; 1838 1838 }