aboutsummaryrefslogtreecommitdiffstats
path: root/net/ceph/mon_client.c
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2012-06-15 15:32:04 -0400
committerSage Weil <sage@inktank.com>2012-06-15 15:32:04 -0400
commit9a64e8e0ace51b309fdcff4b4754b3649250382a (patch)
tree1f0d75c196c5ab0408c55ed6cf3a152f1f921e15 /net/ceph/mon_client.c
parentf3dea7edd3d449fe7a6d402c1ce56a294b985261 (diff)
parentf8f5701bdaf9134b1f90e5044a82c66324d2073f (diff)
Merge tag 'v3.5-rc1'
Linux 3.5-rc1 Conflicts: net/ceph/messenger.c
Diffstat (limited to 'net/ceph/mon_client.c')
-rw-r--r--net/ceph/mon_client.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/net/ceph/mon_client.c b/net/ceph/mon_client.c
index dc16595d6885..e9db3de20b2e 100644
--- a/net/ceph/mon_client.c
+++ b/net/ceph/mon_client.c
@@ -171,7 +171,7 @@ static bool __sub_expired(struct ceph_mon_client *monc)
171 */ 171 */
172static void __schedule_delayed(struct ceph_mon_client *monc) 172static void __schedule_delayed(struct ceph_mon_client *monc)
173{ 173{
174 unsigned delay; 174 unsigned int delay;
175 175
176 if (monc->cur_mon < 0 || __sub_expired(monc)) 176 if (monc->cur_mon < 0 || __sub_expired(monc))
177 delay = 10 * HZ; 177 delay = 10 * HZ;
@@ -187,7 +187,7 @@ static void __schedule_delayed(struct ceph_mon_client *monc)
187static void __send_subscribe(struct ceph_mon_client *monc) 187static void __send_subscribe(struct ceph_mon_client *monc)
188{ 188{
189 dout("__send_subscribe sub_sent=%u exp=%u want_osd=%d\n", 189 dout("__send_subscribe sub_sent=%u exp=%u want_osd=%d\n",
190 (unsigned)monc->sub_sent, __sub_expired(monc), 190 (unsigned int)monc->sub_sent, __sub_expired(monc),
191 monc->want_next_osdmap); 191 monc->want_next_osdmap);
192 if ((__sub_expired(monc) && !monc->sub_sent) || 192 if ((__sub_expired(monc) && !monc->sub_sent) ||
193 monc->want_next_osdmap == 1) { 193 monc->want_next_osdmap == 1) {
@@ -204,7 +204,7 @@ static void __send_subscribe(struct ceph_mon_client *monc)
204 204
205 if (monc->want_next_osdmap) { 205 if (monc->want_next_osdmap) {
206 dout("__send_subscribe to 'osdmap' %u\n", 206 dout("__send_subscribe to 'osdmap' %u\n",
207 (unsigned)monc->have_osdmap); 207 (unsigned int)monc->have_osdmap);
208 ceph_encode_string(&p, end, "osdmap", 6); 208 ceph_encode_string(&p, end, "osdmap", 6);
209 i = p; 209 i = p;
210 i->have = cpu_to_le64(monc->have_osdmap); 210 i->have = cpu_to_le64(monc->have_osdmap);
@@ -214,7 +214,7 @@ static void __send_subscribe(struct ceph_mon_client *monc)
214 } 214 }
215 if (monc->want_mdsmap) { 215 if (monc->want_mdsmap) {
216 dout("__send_subscribe to 'mdsmap' %u+\n", 216 dout("__send_subscribe to 'mdsmap' %u+\n",
217 (unsigned)monc->have_mdsmap); 217 (unsigned int)monc->have_mdsmap);
218 ceph_encode_string(&p, end, "mdsmap", 6); 218 ceph_encode_string(&p, end, "mdsmap", 6);
219 i = p; 219 i = p;
220 i->have = cpu_to_le64(monc->have_mdsmap); 220 i->have = cpu_to_le64(monc->have_mdsmap);
@@ -239,7 +239,7 @@ static void __send_subscribe(struct ceph_mon_client *monc)
239static void handle_subscribe_ack(struct ceph_mon_client *monc, 239static void handle_subscribe_ack(struct ceph_mon_client *monc,
240 struct ceph_msg *msg) 240 struct ceph_msg *msg)
241{ 241{
242 unsigned seconds; 242 unsigned int seconds;
243 struct ceph_mon_subscribe_ack *h = msg->front.iov_base; 243 struct ceph_mon_subscribe_ack *h = msg->front.iov_base;
244 244
245 if (msg->front.iov_len < sizeof(*h)) 245 if (msg->front.iov_len < sizeof(*h))