aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@linbit.com>2011-07-22 07:53:19 -0400
committerPhilipp Reisner <philipp.reisner@linbit.com>2014-02-17 10:46:48 -0500
commitf44d0436db1ea02f2a08bec40a854550a93e90a8 (patch)
tree1954be419a9cca3cada1636d96cb93868b5eafbd /include
parent6bbf53ca6269353c1d8174678b15aa4288a9cdb0 (diff)
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 'include')
-rw-r--r--include/linux/drbd.h2
-rw-r--r--include/linux/drbd_genl.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/drbd.h b/include/linux/drbd.h
index de7d74ab3de6..6f60136da873 100644
--- a/include/linux/drbd.h
+++ b/include/linux/drbd.h
@@ -382,4 +382,6 @@ enum drbd_timeout_flag {
382#define DRBD_MD_INDEX_FLEX_EXT -2 382#define DRBD_MD_INDEX_FLEX_EXT -2
383#define DRBD_MD_INDEX_FLEX_INT -3 383#define DRBD_MD_INDEX_FLEX_INT -3
384 384
385#define DRBD_CPU_MASK_SIZE 32
386
385#endif 387#endif
diff --git a/include/linux/drbd_genl.h b/include/linux/drbd_genl.h
index b14a2e899fea..4193f5f2636c 100644
--- a/include/linux/drbd_genl.h
+++ b/include/linux/drbd_genl.h
@@ -135,7 +135,7 @@ GENL_struct(DRBD_NLA_DISK_CONF, 3, disk_conf,
135) 135)
136 136
137GENL_struct(DRBD_NLA_RESOURCE_OPTS, 4, res_opts, 137GENL_struct(DRBD_NLA_RESOURCE_OPTS, 4, res_opts,
138 __str_field_def(1, DRBD_GENLA_F_MANDATORY, cpu_mask, 32) 138 __str_field_def(1, DRBD_GENLA_F_MANDATORY, cpu_mask, DRBD_CPU_MASK_SIZE)
139 __u32_field_def(2, DRBD_GENLA_F_MANDATORY, on_no_data, DRBD_ON_NO_DATA_DEF) 139 __u32_field_def(2, DRBD_GENLA_F_MANDATORY, on_no_data, DRBD_ON_NO_DATA_DEF)
140) 140)
141 141