aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/drbd/drbd_int.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block/drbd/drbd_int.h')
-rw-r--r--drivers/block/drbd/drbd_int.h8
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
168extern struct ratelimit_state drbd_ratelimit_state; 168extern struct ratelimit_state drbd_ratelimit_state;
169extern struct idr minors; /* RCU, updates: genl_lock() */ 169extern struct idr drbd_devices; /* RCU, updates: genl_lock() */
170extern struct list_head drbd_connections; /* RCU, updates: genl_lock() */ 170extern struct list_head drbd_connections; /* RCU, updates: genl_lock() */
171 171
172extern const char *cmdname(enum drbd_packet cmd); 172extern const char *cmdname(enum drbd_packet cmd);
@@ -771,7 +771,7 @@ struct drbd_device {
771 771
772static inline struct drbd_device *minor_to_device(unsigned int minor) 772static 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
777static inline struct drbd_peer_device *first_peer_device(struct drbd_device *device) 777static inline struct drbd_peer_device *first_peer_device(struct drbd_device *device)
@@ -1175,11 +1175,11 @@ extern rwlock_t global_state_lock;
1175 1175
1176extern int conn_lowest_minor(struct drbd_connection *connection); 1176extern int conn_lowest_minor(struct drbd_connection *connection);
1177enum drbd_ret_code drbd_create_minor(struct drbd_connection *connection, unsigned int minor, int vnr); 1177enum drbd_ret_code drbd_create_minor(struct drbd_connection *connection, unsigned int minor, int vnr);
1178extern void drbd_minor_destroy(struct kref *kref); 1178extern void drbd_destroy_device(struct kref *kref);
1179 1179
1180extern int set_resource_options(struct drbd_connection *connection, struct res_opts *res_opts); 1180extern int set_resource_options(struct drbd_connection *connection, struct res_opts *res_opts);
1181extern struct drbd_connection *conn_create(const char *name, struct res_opts *res_opts); 1181extern struct drbd_connection *conn_create(const char *name, struct res_opts *res_opts);
1182extern void conn_destroy(struct kref *kref); 1182extern void drbd_destroy_connection(struct kref *kref);
1183struct drbd_connection *conn_get_by_name(const char *name); 1183struct drbd_connection *conn_get_by_name(const char *name);
1184extern struct drbd_connection *conn_get_by_addrs(void *my_addr, int my_addr_len, 1184extern 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);