aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ceph
diff options
context:
space:
mode:
authorAlex Elder <elder@inktank.com>2012-05-27 00:26:43 -0400
committerAlex Elder <elder@dreamhost.com>2012-06-06 10:23:54 -0400
commit1bfd89f4e6e1adc6a782d94aa5d4c53be1e404d7 (patch)
tree32bbe82e2817619bf16516d8531a2e5b79e2528c /include/linux/ceph
parent20581c1faf7b15ae1f8b80c0ec757877b0b53151 (diff)
libceph: fully initialize connection in con_init()
Move the initialization of a ceph connection's private pointer, operations vector pointer, and peer name information into ceph_con_init(). Rearrange the arguments so the connection pointer is first. Hide the byte-swapping of the peer entity number inside ceph_con_init() Signed-off-by: Alex Elder <elder@inktank.com> Reviewed-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'include/linux/ceph')
-rw-r--r--include/linux/ceph/messenger.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/ceph/messenger.h b/include/linux/ceph/messenger.h
index 5e852f444f68..dd27837f79ac 100644
--- a/include/linux/ceph/messenger.h
+++ b/include/linux/ceph/messenger.h
@@ -227,8 +227,10 @@ extern void ceph_messenger_init(struct ceph_messenger *msgr,
227 u32 required_features, 227 u32 required_features,
228 bool nocrc); 228 bool nocrc);
229 229
230extern void ceph_con_init(struct ceph_messenger *msgr, 230extern void ceph_con_init(struct ceph_connection *con, void *private,
231 struct ceph_connection *con); 231 const struct ceph_connection_operations *ops,
232 struct ceph_messenger *msgr, __u8 entity_type,
233 __u64 entity_num);
232extern void ceph_con_open(struct ceph_connection *con, 234extern void ceph_con_open(struct ceph_connection *con,
233 struct ceph_entity_addr *addr); 235 struct ceph_entity_addr *addr);
234extern bool ceph_con_opened(struct ceph_connection *con); 236extern bool ceph_con_opened(struct ceph_connection *con);