diff options
Diffstat (limited to 'drivers/block/drbd/drbd_int.h')
-rw-r--r-- | drivers/block/drbd/drbd_int.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/block/drbd/drbd_int.h b/drivers/block/drbd/drbd_int.h index 85e2f4b56a06..b324314768fd 100644 --- a/drivers/block/drbd/drbd_int.h +++ b/drivers/block/drbd/drbd_int.h | |||
@@ -166,7 +166,7 @@ drbd_insert_fault(struct drbd_device *device, unsigned int type) { | |||
166 | #define div_floor(A, B) ((A)/(B)) | 166 | #define div_floor(A, B) ((A)/(B)) |
167 | 167 | ||
168 | extern struct ratelimit_state drbd_ratelimit_state; | 168 | extern struct ratelimit_state drbd_ratelimit_state; |
169 | extern struct idr minors; /* RCU, updates: genl_lock() */ | 169 | extern struct idr drbd_devices; /* RCU, updates: genl_lock() */ |
170 | extern struct list_head drbd_connections; /* RCU, updates: genl_lock() */ | 170 | extern struct list_head drbd_connections; /* RCU, updates: genl_lock() */ |
171 | 171 | ||
172 | extern const char *cmdname(enum drbd_packet cmd); | 172 | extern const char *cmdname(enum drbd_packet cmd); |
@@ -771,7 +771,7 @@ struct drbd_device { | |||
771 | 771 | ||
772 | static inline struct drbd_device *minor_to_device(unsigned int minor) | 772 | static inline struct drbd_device *minor_to_device(unsigned int minor) |
773 | { | 773 | { |
774 | return (struct drbd_device *)idr_find(&minors, minor); | 774 | return (struct drbd_device *)idr_find(&drbd_devices, minor); |
775 | } | 775 | } |
776 | 776 | ||
777 | static inline struct drbd_peer_device *first_peer_device(struct drbd_device *device) | 777 | static inline struct drbd_peer_device *first_peer_device(struct drbd_device *device) |
@@ -1175,11 +1175,11 @@ extern rwlock_t global_state_lock; | |||
1175 | 1175 | ||
1176 | extern int conn_lowest_minor(struct drbd_connection *connection); | 1176 | extern int conn_lowest_minor(struct drbd_connection *connection); |
1177 | enum drbd_ret_code drbd_create_minor(struct drbd_connection *connection, unsigned int minor, int vnr); | 1177 | enum drbd_ret_code drbd_create_minor(struct drbd_connection *connection, unsigned int minor, int vnr); |
1178 | extern void drbd_minor_destroy(struct kref *kref); | 1178 | extern void drbd_destroy_device(struct kref *kref); |
1179 | 1179 | ||
1180 | extern int set_resource_options(struct drbd_connection *connection, struct res_opts *res_opts); | 1180 | extern int set_resource_options(struct drbd_connection *connection, struct res_opts *res_opts); |
1181 | extern struct drbd_connection *conn_create(const char *name, struct res_opts *res_opts); | 1181 | extern struct drbd_connection *conn_create(const char *name, struct res_opts *res_opts); |
1182 | extern void conn_destroy(struct kref *kref); | 1182 | extern void drbd_destroy_connection(struct kref *kref); |
1183 | struct drbd_connection *conn_get_by_name(const char *name); | 1183 | struct drbd_connection *conn_get_by_name(const char *name); |
1184 | extern struct drbd_connection *conn_get_by_addrs(void *my_addr, int my_addr_len, | 1184 | extern struct drbd_connection *conn_get_by_addrs(void *my_addr, int my_addr_len, |
1185 | void *peer_addr, int peer_addr_len); | 1185 | void *peer_addr, int peer_addr_len); |