summaryrefslogtreecommitdiffstats
path: root/drivers/block/drbd/drbd_main.c
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@linbit.com>2011-07-22 13:53:19 +0200
committerPhilipp Reisner <philipp.reisner@linbit.com>2014-02-17 16:46:48 +0100
commitf44d0436db1ea02f2a08bec40a854550a93e90a8 (patch)
tree1954be419a9cca3cada1636d96cb93868b5eafbd /drivers/block/drbd/drbd_main.c
parent6bbf53ca6269353c1d8174678b15aa4288a9cdb0 (diff)
downloadop-kernel-dev-f44d0436db1ea02f2a08bec40a854550a93e90a8.zip
op-kernel-dev-f44d0436db1ea02f2a08bec40a854550a93e90a8.tar.gz
drbd: Define the size of res_opts->cpu_mask in a single place
Signed-off-by: Andreas Gruenbacher <agruen@linbit.com> Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Diffstat (limited to 'drivers/block/drbd/drbd_main.c')
-rw-r--r--drivers/block/drbd/drbd_main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/block/drbd/drbd_main.c b/drivers/block/drbd/drbd_main.c
index e07446e..59a58e8 100644
--- a/drivers/block/drbd/drbd_main.c
+++ b/drivers/block/drbd/drbd_main.c
@@ -2503,8 +2503,7 @@ int set_resource_options(struct drbd_resource *resource, struct res_opts *res_op
/* silently ignore cpu mask on UP kernel */
if (nr_cpu_ids > 1 && res_opts->cpu_mask[0] != 0) {
- /* FIXME: Get rid of constant 32 here */
- err = bitmap_parse(res_opts->cpu_mask, 32,
+ err = bitmap_parse(res_opts->cpu_mask, DRBD_CPU_MASK_SIZE,
cpumask_bits(new_cpu_mask), nr_cpu_ids);
if (err) {
drbd_warn(resource, "bitmap_parse() failed with %d\n", err);
OpenPOWER on IntegriCloud