Lines Matching defs:monmap
36 * Decode a monmap blob (e.g., during mount).
87 * return true if *addr is included in the monmap.
137 monc->cur_mon = r % monc->monmap->num_mon;
139 monc->monmap->num_mon, r, monc->cur_mon);
148 &monc->monmap->mon_inst[monc->cur_mon].addr);
218 ceph_encode_string(&p, end, "monmap", 6);
322 struct ceph_monmap *monmap = NULL, *old = monc->monmap;
331 monmap = ceph_monmap_decode(p, end);
332 if (IS_ERR(monmap)) {
333 pr_err("problem decoding monmap, %d\n",
334 (int)PTR_ERR(monmap));
338 if (ceph_check_fsid(monc->client, &monmap->fsid) < 0) {
339 kfree(monmap);
343 client->monc.monmap = monmap;
535 h->fsid = monc->monmap->fsid;
633 h->fsid = monc->monmap->fsid;
706 * On startup, we build a temporary monmap populated with the IPs
716 /* build initial monmap */
717 monc->monmap = kzalloc(sizeof(*monc->monmap) +
718 num_mon*sizeof(monc->monmap->mon_inst[0]),
720 if (!monc->monmap)
723 monc->monmap->mon_inst[i].addr = mon_addr[i];
724 monc->monmap->mon_inst[i].addr.nonce = 0;
725 monc->monmap->mon_inst[i].name.type =
727 monc->monmap->mon_inst[i].name.num = cpu_to_le64(i);
729 monc->monmap->num_mon = num_mon;
746 monc->monmap = NULL;
807 kfree(monc->monmap);
833 kfree(monc->monmap);