diff options
author | Alex Elder <elder@inktank.com> | 2012-05-16 16:16:38 -0400 |
---|---|---|
committer | Alex Elder <elder@dreamhost.com> | 2012-05-17 09:18:12 -0400 |
commit | 6c4a19158b96ea1fb8acbe0c1d5493d9dcd2f147 (patch) | |
tree | 5fe6418eb57bf4e84f1eda9606a4a045ff08dcba /fs/ceph/mds_client.h | |
parent | ed96af646011412c2bf1ffe860db170db355fae5 (diff) |
ceph: define ceph_auth_handshake type
The definitions for the ceph_mds_session and ceph_osd both contain
five fields related only to "authorizers." Encapsulate those fields
into their own struct type, allowing for better isolation in some
upcoming patches.
Fix the #includes in "linux/ceph/osd_client.h" to lay out their more
complete canonical path.
Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'fs/ceph/mds_client.h')
-rw-r--r-- | fs/ceph/mds_client.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/ceph/mds_client.h b/fs/ceph/mds_client.h index 8c7c04ebb595..dd26846dd71d 100644 --- a/fs/ceph/mds_client.h +++ b/fs/ceph/mds_client.h | |||
@@ -11,6 +11,7 @@ | |||
11 | #include <linux/ceph/types.h> | 11 | #include <linux/ceph/types.h> |
12 | #include <linux/ceph/messenger.h> | 12 | #include <linux/ceph/messenger.h> |
13 | #include <linux/ceph/mdsmap.h> | 13 | #include <linux/ceph/mdsmap.h> |
14 | #include <linux/ceph/auth.h> | ||
14 | 15 | ||
15 | /* | 16 | /* |
16 | * Some lock dependencies: | 17 | * Some lock dependencies: |
@@ -113,9 +114,7 @@ struct ceph_mds_session { | |||
113 | 114 | ||
114 | struct ceph_connection s_con; | 115 | struct ceph_connection s_con; |
115 | 116 | ||
116 | struct ceph_authorizer *s_authorizer; | 117 | struct ceph_auth_handshake s_auth; |
117 | void *s_authorizer_buf, *s_authorizer_reply_buf; | ||
118 | size_t s_authorizer_buf_len, s_authorizer_reply_buf_len; | ||
119 | 118 | ||
120 | /* protected by s_gen_ttl_lock */ | 119 | /* protected by s_gen_ttl_lock */ |
121 | spinlock_t s_gen_ttl_lock; | 120 | spinlock_t s_gen_ttl_lock; |