aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/mds_client.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ceph/mds_client.c')
-rw-r--r--fs/ceph/mds_client.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c
index 89971e137aab..42013c620488 100644
--- a/fs/ceph/mds_client.c
+++ b/fs/ceph/mds_client.c
@@ -334,10 +334,10 @@ void ceph_put_mds_session(struct ceph_mds_session *s)
334 dout("mdsc put_session %p %d -> %d\n", s, 334 dout("mdsc put_session %p %d -> %d\n", s,
335 atomic_read(&s->s_ref), atomic_read(&s->s_ref)-1); 335 atomic_read(&s->s_ref), atomic_read(&s->s_ref)-1);
336 if (atomic_dec_and_test(&s->s_ref)) { 336 if (atomic_dec_and_test(&s->s_ref)) {
337 if (s->s_authorizer) 337 if (s->s_auth.authorizer)
338 s->s_mdsc->fsc->client->monc.auth->ops->destroy_authorizer( 338 s->s_mdsc->fsc->client->monc.auth->ops->destroy_authorizer(
339 s->s_mdsc->fsc->client->monc.auth, 339 s->s_mdsc->fsc->client->monc.auth,
340 s->s_authorizer); 340 s->s_auth.authorizer);
341 kfree(s); 341 kfree(s);
342 } 342 }
343} 343}
@@ -3404,29 +3404,29 @@ static int get_authorizer(struct ceph_connection *con,
3404 struct ceph_auth_client *ac = mdsc->fsc->client->monc.auth; 3404 struct ceph_auth_client *ac = mdsc->fsc->client->monc.auth;
3405 int ret = 0; 3405 int ret = 0;
3406 3406
3407 if (force_new && s->s_authorizer) { 3407 if (force_new && s->s_auth.authorizer) {
3408 ac->ops->destroy_authorizer(ac, s->s_authorizer); 3408 ac->ops->destroy_authorizer(ac, s->s_auth.authorizer);
3409 s->s_authorizer = NULL; 3409 s->s_auth.authorizer = NULL;
3410 } 3410 }
3411 if (s->s_authorizer == NULL) { 3411 if (s->s_auth.authorizer == NULL) {
3412 if (ac->ops->create_authorizer) { 3412 if (ac->ops->create_authorizer) {
3413 ret = ac->ops->create_authorizer( 3413 ret = ac->ops->create_authorizer(
3414 ac, CEPH_ENTITY_TYPE_MDS, 3414 ac, CEPH_ENTITY_TYPE_MDS,
3415 &s->s_authorizer, 3415 &s->s_auth.authorizer,
3416 &s->s_authorizer_buf, 3416 &s->s_auth.authorizer_buf,
3417 &s->s_authorizer_buf_len, 3417 &s->s_auth.authorizer_buf_len,
3418 &s->s_authorizer_reply_buf, 3418 &s->s_auth.authorizer_reply_buf,
3419 &s->s_authorizer_reply_buf_len); 3419 &s->s_auth.authorizer_reply_buf_len);
3420 if (ret) 3420 if (ret)
3421 return ret; 3421 return ret;
3422 } 3422 }
3423 } 3423 }
3424 3424
3425 *proto = ac->protocol; 3425 *proto = ac->protocol;
3426 *buf = s->s_authorizer_buf; 3426 *buf = s->s_auth.authorizer_buf;
3427 *len = s->s_authorizer_buf_len; 3427 *len = s->s_auth.authorizer_buf_len;
3428 *reply_buf = s->s_authorizer_reply_buf; 3428 *reply_buf = s->s_auth.authorizer_reply_buf;
3429 *reply_len = s->s_authorizer_reply_buf_len; 3429 *reply_len = s->s_auth.authorizer_reply_buf_len;
3430 return 0; 3430 return 0;
3431} 3431}
3432 3432
@@ -3437,7 +3437,7 @@ static int verify_authorizer_reply(struct ceph_connection *con, int len)
3437 struct ceph_mds_client *mdsc = s->s_mdsc; 3437 struct ceph_mds_client *mdsc = s->s_mdsc;
3438 struct ceph_auth_client *ac = mdsc->fsc->client->monc.auth; 3438 struct ceph_auth_client *ac = mdsc->fsc->client->monc.auth;
3439 3439
3440 return ac->ops->verify_authorizer_reply(ac, s->s_authorizer, len); 3440 return ac->ops->verify_authorizer_reply(ac, s->s_auth.authorizer, len);
3441} 3441}
3442 3442
3443static int invalidate_authorizer(struct ceph_connection *con) 3443static int invalidate_authorizer(struct ceph_connection *con)