drbd: Move drbd_send_ping() and drbd_send_ping_ack() to drbd_main.c
authorAndreas Gruenbacher <agruen@linbit.com>
Tue, 22 Mar 2011 09:55:48 +0000 (10:55 +0100)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 8 Nov 2012 15:44:52 +0000 (16:44 +0100)
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
drivers/block/drbd/drbd_int.h
drivers/block/drbd/drbd_main.c

index 3a046e418aa4c602905d41a017360307b37ddfcf..4f0cafa1887046d390cc9132d58198f9dd86d9ba 100644 (file)
@@ -1939,17 +1939,8 @@ static inline int drbd_send_short_cmd(struct drbd_conf *mdev,
        return drbd_send_cmd(mdev, &mdev->tconn->data, cmd, &h, sizeof(h));
 }
 
-static inline int drbd_send_ping(struct drbd_tconn *tconn)
-{
-       struct p_header h;
-       return !conn_send_cmd(tconn, 0, &tconn->meta, P_PING, &h, sizeof(h));
-}
-
-static inline int drbd_send_ping_ack(struct drbd_tconn *tconn)
-{
-       struct p_header h;
-       return !conn_send_cmd(tconn, 0, &tconn->meta, P_PING_ACK, &h, sizeof(h));
-}
+extern int drbd_send_ping(struct drbd_tconn *tconn);
+extern int drbd_send_ping_ack(struct drbd_tconn *tconn);
 
 static inline int drbd_send_state_req(struct drbd_conf *mdev,
                                      union drbd_state mask, union drbd_state val)
index a1deab6f1309f87cf586714a718f093f9ebdc407..d9828612c8e8dac77c98bb310da36d5c4321c162 100644 (file)
@@ -765,6 +765,18 @@ int conn_send_cmd2(struct drbd_tconn *tconn, enum drbd_packet cmd, char *data,
        return err;
 }
 
+int drbd_send_ping(struct drbd_tconn *tconn)
+{
+       struct p_header h;
+       return !conn_send_cmd(tconn, 0, &tconn->meta, P_PING, &h, sizeof(h));
+}
+
+int drbd_send_ping_ack(struct drbd_tconn *tconn)
+{
+       struct p_header h;
+       return !conn_send_cmd(tconn, 0, &tconn->meta, P_PING_ACK, &h, sizeof(h));
+}
+
 int drbd_send_sync_param(struct drbd_conf *mdev)
 {
        struct p_rs_param_95 *p;