diff options
author | Andreas Gruenbacher <agruen@linbit.com> | 2011-01-26 11:39:41 -0500 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2011-09-28 04:26:24 -0400 |
commit | d87630230616ba2c13141184258906d34c727b4b (patch) | |
tree | a6e210afb4b1c8728ee274df89a98c8d48f881cf /drivers/block/drbd/drbd_int.h | |
parent | f2ad90637978e9cff3bdd32d414c9e851e47868c (diff) |
drbd: Rename "enum drbd_packets" to "enum drbd_packet"
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers/block/drbd/drbd_int.h')
-rw-r--r-- | drivers/block/drbd/drbd_int.h | 40 |
1 files changed, 19 insertions, 21 deletions
diff --git a/drivers/block/drbd/drbd_int.h b/drivers/block/drbd/drbd_int.h index e8a1fa556956..9f5c13513d63 100644 --- a/drivers/block/drbd/drbd_int.h +++ b/drivers/block/drbd/drbd_int.h | |||
@@ -159,7 +159,7 @@ extern struct drbd_conf **minor_table; | |||
159 | extern struct ratelimit_state drbd_ratelimit_state; | 159 | extern struct ratelimit_state drbd_ratelimit_state; |
160 | 160 | ||
161 | /* on the wire */ | 161 | /* on the wire */ |
162 | enum drbd_packets { | 162 | enum drbd_packet { |
163 | /* receiver (data socket) */ | 163 | /* receiver (data socket) */ |
164 | P_DATA = 0x00, | 164 | P_DATA = 0x00, |
165 | P_DATA_REPLY = 0x01, /* Response to P_DATA_REQUEST */ | 165 | P_DATA_REPLY = 0x01, /* Response to P_DATA_REQUEST */ |
@@ -221,7 +221,7 @@ enum drbd_packets { | |||
221 | P_HAND_SHAKE = 0xfffe /* FIXED for the next century! */ | 221 | P_HAND_SHAKE = 0xfffe /* FIXED for the next century! */ |
222 | }; | 222 | }; |
223 | 223 | ||
224 | extern const char *cmdname(enum drbd_packets cmd); | 224 | extern const char *cmdname(enum drbd_packet cmd); |
225 | 225 | ||
226 | /* for sending/receiving the bitmap, | 226 | /* for sending/receiving the bitmap, |
227 | * possibly in some encoding scheme */ | 227 | * possibly in some encoding scheme */ |
@@ -1189,36 +1189,34 @@ extern int drbd_send_sizes(struct drbd_conf *mdev, int trigger_reply, enum dds_f | |||
1189 | extern int _drbd_send_state(struct drbd_conf *mdev); | 1189 | extern int _drbd_send_state(struct drbd_conf *mdev); |
1190 | extern int drbd_send_state(struct drbd_conf *mdev); | 1190 | extern int drbd_send_state(struct drbd_conf *mdev); |
1191 | extern int _drbd_send_cmd(struct drbd_conf *mdev, struct socket *sock, | 1191 | extern int _drbd_send_cmd(struct drbd_conf *mdev, struct socket *sock, |
1192 | enum drbd_packets cmd, struct p_header *h, | 1192 | enum drbd_packet cmd, struct p_header *h, |
1193 | size_t size, unsigned msg_flags); | 1193 | size_t size, unsigned msg_flags); |
1194 | #define USE_DATA_SOCKET 1 | 1194 | #define USE_DATA_SOCKET 1 |
1195 | #define USE_META_SOCKET 0 | 1195 | #define USE_META_SOCKET 0 |
1196 | extern int drbd_send_cmd(struct drbd_conf *mdev, int use_data_socket, | 1196 | extern int drbd_send_cmd(struct drbd_conf *mdev, int use_data_socket, |
1197 | enum drbd_packets cmd, struct p_header *h, | 1197 | enum drbd_packet cmd, struct p_header *h, size_t size); |
1198 | size_t size); | 1198 | extern int drbd_send_cmd2(struct drbd_conf *mdev, enum drbd_packet cmd, |
1199 | extern int drbd_send_cmd2(struct drbd_conf *mdev, enum drbd_packets cmd, | 1199 | char *data, size_t size); |
1200 | char *data, size_t size); | ||
1201 | extern int drbd_send_sync_param(struct drbd_conf *mdev, struct syncer_conf *sc); | 1200 | extern int drbd_send_sync_param(struct drbd_conf *mdev, struct syncer_conf *sc); |
1202 | extern int drbd_send_b_ack(struct drbd_conf *mdev, u32 barrier_nr, | 1201 | extern int drbd_send_b_ack(struct drbd_conf *mdev, u32 barrier_nr, |
1203 | u32 set_size); | 1202 | u32 set_size); |
1204 | extern int drbd_send_ack(struct drbd_conf *mdev, enum drbd_packets cmd, | 1203 | extern int drbd_send_ack(struct drbd_conf *mdev, enum drbd_packet cmd, |
1205 | struct drbd_epoch_entry *e); | 1204 | struct drbd_epoch_entry *e); |
1206 | extern int drbd_send_ack_rp(struct drbd_conf *mdev, enum drbd_packets cmd, | 1205 | extern int drbd_send_ack_rp(struct drbd_conf *mdev, enum drbd_packet cmd, |
1207 | struct p_block_req *rp); | 1206 | struct p_block_req *rp); |
1208 | extern int drbd_send_ack_dp(struct drbd_conf *mdev, enum drbd_packets cmd, | 1207 | extern int drbd_send_ack_dp(struct drbd_conf *mdev, enum drbd_packet cmd, |
1209 | struct p_data *dp, int data_size); | 1208 | struct p_data *dp, int data_size); |
1210 | extern int drbd_send_ack_ex(struct drbd_conf *mdev, enum drbd_packets cmd, | 1209 | extern int drbd_send_ack_ex(struct drbd_conf *mdev, enum drbd_packet cmd, |
1211 | sector_t sector, int blksize, u64 block_id); | 1210 | sector_t sector, int blksize, u64 block_id); |
1212 | extern int drbd_send_oos(struct drbd_conf *mdev, struct drbd_request *req); | 1211 | extern int drbd_send_oos(struct drbd_conf *mdev, struct drbd_request *req); |
1213 | extern int drbd_send_block(struct drbd_conf *mdev, enum drbd_packets cmd, | 1212 | extern int drbd_send_block(struct drbd_conf *mdev, enum drbd_packet cmd, |
1214 | struct drbd_epoch_entry *e); | 1213 | struct drbd_epoch_entry *e); |
1215 | extern int drbd_send_dblock(struct drbd_conf *mdev, struct drbd_request *req); | 1214 | extern int drbd_send_dblock(struct drbd_conf *mdev, struct drbd_request *req); |
1216 | extern int drbd_send_drequest(struct drbd_conf *mdev, int cmd, | 1215 | extern int drbd_send_drequest(struct drbd_conf *mdev, int cmd, |
1217 | sector_t sector, int size, u64 block_id); | 1216 | sector_t sector, int size, u64 block_id); |
1218 | extern int drbd_send_drequest_csum(struct drbd_conf *mdev, | 1217 | extern int drbd_send_drequest_csum(struct drbd_conf *mdev, sector_t sector, |
1219 | sector_t sector,int size, | 1218 | int size, void *digest, int digest_size, |
1220 | void *digest, int digest_size, | 1219 | enum drbd_packet cmd); |
1221 | enum drbd_packets cmd); | ||
1222 | extern int drbd_send_ov_request(struct drbd_conf *mdev,sector_t sector,int size); | 1220 | extern int drbd_send_ov_request(struct drbd_conf *mdev,sector_t sector,int size); |
1223 | 1221 | ||
1224 | extern int drbd_send_bitmap(struct drbd_conf *mdev); | 1222 | extern int drbd_send_bitmap(struct drbd_conf *mdev); |
@@ -1961,7 +1959,7 @@ static inline void request_ping(struct drbd_conf *mdev) | |||
1961 | } | 1959 | } |
1962 | 1960 | ||
1963 | static inline int drbd_send_short_cmd(struct drbd_conf *mdev, | 1961 | static inline int drbd_send_short_cmd(struct drbd_conf *mdev, |
1964 | enum drbd_packets cmd) | 1962 | enum drbd_packet cmd) |
1965 | { | 1963 | { |
1966 | struct p_header h; | 1964 | struct p_header h; |
1967 | return drbd_send_cmd(mdev, USE_DATA_SOCKET, cmd, &h, sizeof(h)); | 1965 | return drbd_send_cmd(mdev, USE_DATA_SOCKET, cmd, &h, sizeof(h)); |