Skip to content

Commit 524d1e6

Browse files
committed
libceph: drop ceph_auth_{create,update}_authorizer()
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
1 parent 571139d commit 524d1e6

2 files changed

Lines changed: 0 additions & 34 deletions

File tree

include/linux/ceph/auth.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,7 @@ int __ceph_auth_get_authorizer(struct ceph_auth_client *ac,
126126
struct ceph_auth_handshake *auth,
127127
int peer_type, bool force_new,
128128
int *proto, int *pref_mode, int *fallb_mode);
129-
extern int ceph_auth_create_authorizer(struct ceph_auth_client *ac,
130-
int peer_type,
131-
struct ceph_auth_handshake *auth);
132129
void ceph_auth_destroy_authorizer(struct ceph_authorizer *a);
133-
extern int ceph_auth_update_authorizer(struct ceph_auth_client *ac,
134-
int peer_type,
135-
struct ceph_auth_handshake *a);
136130
int ceph_auth_add_authorizer_challenge(struct ceph_auth_client *ac,
137131
struct ceph_authorizer *a,
138132
void *challenge_buf,

net/ceph/auth.c

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -326,40 +326,12 @@ int __ceph_auth_get_authorizer(struct ceph_auth_client *ac,
326326
}
327327
EXPORT_SYMBOL(__ceph_auth_get_authorizer);
328328

329-
int ceph_auth_create_authorizer(struct ceph_auth_client *ac,
330-
int peer_type,
331-
struct ceph_auth_handshake *auth)
332-
{
333-
int ret = 0;
334-
335-
mutex_lock(&ac->mutex);
336-
if (ac->ops && ac->ops->create_authorizer)
337-
ret = ac->ops->create_authorizer(ac, peer_type, auth);
338-
mutex_unlock(&ac->mutex);
339-
return ret;
340-
}
341-
EXPORT_SYMBOL(ceph_auth_create_authorizer);
342-
343329
void ceph_auth_destroy_authorizer(struct ceph_authorizer *a)
344330
{
345331
a->destroy(a);
346332
}
347333
EXPORT_SYMBOL(ceph_auth_destroy_authorizer);
348334

349-
int ceph_auth_update_authorizer(struct ceph_auth_client *ac,
350-
int peer_type,
351-
struct ceph_auth_handshake *a)
352-
{
353-
int ret = 0;
354-
355-
mutex_lock(&ac->mutex);
356-
if (ac->ops && ac->ops->update_authorizer)
357-
ret = ac->ops->update_authorizer(ac, peer_type, a);
358-
mutex_unlock(&ac->mutex);
359-
return ret;
360-
}
361-
EXPORT_SYMBOL(ceph_auth_update_authorizer);
362-
363335
int ceph_auth_add_authorizer_challenge(struct ceph_auth_client *ac,
364336
struct ceph_authorizer *a,
365337
void *challenge_buf,

0 commit comments

Comments
 (0)