aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/mon_client.c
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2010-01-07 19:12:36 -0500
committerSage Weil <sage@newdream.net>2010-01-14 15:23:38 -0500
commit103e2d3ae57d38d18aaac1b327266c1407499ac1 (patch)
tree9e46032de5680bd987e8fdd16753856e496812e6 /fs/ceph/mon_client.c
parent4baa75ef0ed29adae03fcbbaa9aca1511a5a8cc9 (diff)
ceph: remove unused erank field
The ceph_entity_addr erank field is obsolete; remove it. Get rid of trivial addr comparison helpers while we're at it. Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/mon_client.c')
-rw-r--r--fs/ceph/mon_client.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ceph/mon_client.c b/fs/ceph/mon_client.c
index bb94006fc686..223e8bc207e3 100644
--- a/fs/ceph/mon_client.c
+++ b/fs/ceph/mon_client.c
@@ -88,7 +88,7 @@ int ceph_monmap_contains(struct ceph_monmap *m, struct ceph_entity_addr *addr)
88 int i; 88 int i;
89 89
90 for (i = 0; i < m->num_mon; i++) 90 for (i = 0; i < m->num_mon; i++)
91 if (ceph_entity_addr_equal(addr, &m->mon_inst[i].addr)) 91 if (memcmp(addr, &m->mon_inst[i].addr, sizeof(*addr)) == 0)
92 return 1; 92 return 1;
93 return 0; 93 return 0;
94} 94}
@@ -503,7 +503,6 @@ static int build_initial_monmap(struct ceph_mon_client *monc)
503 return -ENOMEM; 503 return -ENOMEM;
504 for (i = 0; i < num_mon; i++) { 504 for (i = 0; i < num_mon; i++) {
505 monc->monmap->mon_inst[i].addr = mon_addr[i]; 505 monc->monmap->mon_inst[i].addr = mon_addr[i];
506 monc->monmap->mon_inst[i].addr.erank = 0;
507 monc->monmap->mon_inst[i].addr.nonce = 0; 506 monc->monmap->mon_inst[i].addr.nonce = 0;
508 monc->monmap->mon_inst[i].name.type = 507 monc->monmap->mon_inst[i].name.type =
509 CEPH_ENTITY_TYPE_MON; 508 CEPH_ENTITY_TYPE_MON;