projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
libceph, rbd: ignore addr->type while comparing in some cases
[linux-2.6-microblaze.git]
/
net
/
ceph
/
mon_client.c
diff --git
a/net/ceph/mon_client.c
b/net/ceph/mon_client.c
index
a9754a7
..
f5f090b
100644
(file)
--- a/
net/ceph/mon_client.c
+++ b/
net/ceph/mon_client.c
@@
-161,9
+161,11
@@
int ceph_monmap_contains(struct ceph_monmap *m, struct ceph_entity_addr *addr)
{
int i;
- for (i = 0; i < m->num_mon; i++)
- if (
memcmp(addr, &m->mon_inst[i].addr, sizeof(*addr)) == 0
)
+ for (i = 0; i < m->num_mon; i++)
{
+ if (
ceph_addr_equal_no_type(addr, &m->mon_inst[i].addr)
)
return 1;
+ }
+
return 0;
}