aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/osd_client.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ceph/osd_client.c')
-rw-r--r--fs/ceph/osd_client.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/ceph/osd_client.c b/fs/ceph/osd_client.c
index 7dc0f6299a52..7db14ba6261c 100644
--- a/fs/ceph/osd_client.c
+++ b/fs/ceph/osd_client.c
@@ -520,7 +520,7 @@ static int __map_osds(struct ceph_osd_client *osdc,
520 struct ceph_osd_request *req) 520 struct ceph_osd_request *req)
521{ 521{
522 struct ceph_osd_request_head *reqhead = req->r_request->front.iov_base; 522 struct ceph_osd_request_head *reqhead = req->r_request->front.iov_base;
523 union ceph_pg pgid; 523 struct ceph_pg pgid;
524 int o = -1; 524 int o = -1;
525 int err; 525 int err;
526 struct ceph_osd *newosd = NULL; 526 struct ceph_osd *newosd = NULL;
@@ -530,7 +530,7 @@ static int __map_osds(struct ceph_osd_client *osdc,
530 &req->r_file_layout, osdc->osdmap); 530 &req->r_file_layout, osdc->osdmap);
531 if (err) 531 if (err)
532 return err; 532 return err;
533 pgid.pg64 = le64_to_cpu(reqhead->layout.ol_pgid); 533 pgid = reqhead->layout.ol_pgid;
534 o = ceph_calc_pg_primary(osdc->osdmap, pgid); 534 o = ceph_calc_pg_primary(osdc->osdmap, pgid);
535 535
536 if ((req->r_osd && req->r_osd->o_osd == o && 536 if ((req->r_osd && req->r_osd->o_osd == o &&
@@ -538,8 +538,8 @@ static int __map_osds(struct ceph_osd_client *osdc,
538 (req->r_osd == NULL && o == -1)) 538 (req->r_osd == NULL && o == -1))
539 return 0; /* no change */ 539 return 0; /* no change */
540 540
541 dout("map_osds tid %llu pgid %llx pool %d osd%d (was osd%d)\n", 541 dout("map_osds tid %llu pgid %d.%x osd%d (was osd%d)\n",
542 req->r_tid, pgid.pg64, pgid.pg.pool, o, 542 req->r_tid, le32_to_cpu(pgid.pool), le16_to_cpu(pgid.ps), o,
543 req->r_osd ? req->r_osd->o_osd : -1); 543 req->r_osd ? req->r_osd->o_osd : -1);
544 544
545 if (req->r_osd) { 545 if (req->r_osd) {