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/msgr.h | |
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/msgr.h')
-rw-r--r-- | fs/ceph/msgr.h | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/fs/ceph/msgr.h b/fs/ceph/msgr.h index be83f93182ee..40b6189aa9e3 100644 --- a/fs/ceph/msgr.h +++ b/fs/ceph/msgr.h | |||
@@ -61,24 +61,10 @@ extern const char *ceph_entity_type_name(int type); | |||
61 | * entity_addr -- network address | 61 | * entity_addr -- network address |
62 | */ | 62 | */ |
63 | struct ceph_entity_addr { | 63 | struct ceph_entity_addr { |
64 | __le32 erank; /* entity's rank in process */ | 64 | __le64 nonce; /* unique id for process (e.g. pid) */ |
65 | __le32 nonce; /* unique id for process (e.g. pid) */ | ||
66 | struct sockaddr_storage in_addr; | 65 | struct sockaddr_storage in_addr; |
67 | } __attribute__ ((packed)); | 66 | } __attribute__ ((packed)); |
68 | 67 | ||
69 | static inline bool ceph_entity_addr_is_local(const struct ceph_entity_addr *a, | ||
70 | const struct ceph_entity_addr *b) | ||
71 | { | ||
72 | return a->nonce == b->nonce && | ||
73 | memcmp(&a->in_addr, &b->in_addr, sizeof(a->in_addr)) == 0; | ||
74 | } | ||
75 | |||
76 | static inline bool ceph_entity_addr_equal(const struct ceph_entity_addr *a, | ||
77 | const struct ceph_entity_addr *b) | ||
78 | { | ||
79 | return memcmp(a, b, sizeof(*a)) == 0; | ||
80 | } | ||
81 | |||
82 | struct ceph_entity_inst { | 68 | struct ceph_entity_inst { |
83 | struct ceph_entity_name name; | 69 | struct ceph_entity_name name; |
84 | struct ceph_entity_addr addr; | 70 | struct ceph_entity_addr addr; |
@@ -147,7 +133,7 @@ struct ceph_msg_header { | |||
147 | receiver: mask against ~PAGE_MASK */ | 133 | receiver: mask against ~PAGE_MASK */ |
148 | 134 | ||
149 | struct ceph_entity_inst src, orig_src; | 135 | struct ceph_entity_inst src, orig_src; |
150 | __le32 dst_erank; | 136 | __le32 reserved; |
151 | __le32 crc; /* header crc32c */ | 137 | __le32 crc; /* header crc32c */ |
152 | } __attribute__ ((packed)); | 138 | } __attribute__ ((packed)); |
153 | 139 | ||