diff options
author | Sage Weil <sage@newdream.net> | 2010-01-07 19:12:36 -0500 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2010-01-14 15:23:38 -0500 |
commit | 103e2d3ae57d38d18aaac1b327266c1407499ac1 (patch) | |
tree | 9e46032de5680bd987e8fdd16753856e496812e6 /fs/ceph/osd_client.c | |
parent | 4baa75ef0ed29adae03fcbbaa9aca1511a5a8cc9 (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/osd_client.c')
-rw-r--r-- | fs/ceph/osd_client.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/ceph/osd_client.c b/fs/ceph/osd_client.c index a0aac436d5d..80b868f7a0f 100644 --- a/fs/ceph/osd_client.c +++ b/fs/ceph/osd_client.c | |||
@@ -821,9 +821,10 @@ static void kick_requests(struct ceph_osd_client *osdc, | |||
821 | 821 | ||
822 | n = rb_next(p); | 822 | n = rb_next(p); |
823 | if (!ceph_osd_is_up(osdc->osdmap, osd->o_osd) || | 823 | if (!ceph_osd_is_up(osdc->osdmap, osd->o_osd) || |
824 | !ceph_entity_addr_equal(&osd->o_con.peer_addr, | 824 | memcmp(&osd->o_con.peer_addr, |
825 | ceph_osd_addr(osdc->osdmap, | 825 | ceph_osd_addr(osdc->osdmap, |
826 | osd->o_osd))) | 826 | osd->o_osd), |
827 | sizeof(struct ceph_entity_addr)) != 0) | ||
827 | reset_osd(osdc, osd); | 828 | reset_osd(osdc, osd); |
828 | } | 829 | } |
829 | } | 830 | } |