aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/mon_client.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ceph/mon_client.c')
-rw-r--r--fs/ceph/mon_client.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/fs/ceph/mon_client.c b/fs/ceph/mon_client.c
index 9c34df17fa4..dc698caccc4 100644
--- a/fs/ceph/mon_client.c
+++ b/fs/ceph/mon_client.c
@@ -273,7 +273,9 @@ static void __request_mount(struct ceph_mon_client *monc)
273 if (IS_ERR(msg)) 273 if (IS_ERR(msg))
274 return; 274 return;
275 h = msg->front.iov_base; 275 h = msg->front.iov_base;
276 h->have_version = 0; 276 h->monhdr.have_version = 0;
277 h->monhdr.session_mon = cpu_to_le16(-1);
278 h->monhdr.session_mon_tid = 0;
277 ceph_con_send(monc->con, msg); 279 ceph_con_send(monc->con, msg);
278} 280}
279 281
@@ -422,7 +424,9 @@ static int send_statfs(struct ceph_mon_client *monc,
422 return PTR_ERR(msg); 424 return PTR_ERR(msg);
423 req->request = msg; 425 req->request = msg;
424 h = msg->front.iov_base; 426 h = msg->front.iov_base;
425 h->have_version = 0; 427 h->monhdr.have_version = 0;
428 h->monhdr.session_mon = cpu_to_le16(-1);
429 h->monhdr.session_mon_tid = 0;
426 h->fsid = monc->monmap->fsid; 430 h->fsid = monc->monmap->fsid;
427 h->tid = cpu_to_le64(req->tid); 431 h->tid = cpu_to_le64(req->tid);
428 ceph_con_send(monc->con, msg); 432 ceph_con_send(monc->con, msg);