Commit 6147285b authored by Neil Brown's avatar Neil Brown Committed by Linus Torvalds

[PATCH] nfsd: svcrpc: rename pg_authenticate

Later patches remove pg_authenticate and use the name for a different purpose;
so rename it to pg_authenticate_obsolete for now.
Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: default avatarNeil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 6bf03de1
...@@ -321,5 +321,5 @@ static struct svc_program nfs4_callback_program = { ...@@ -321,5 +321,5 @@ static struct svc_program nfs4_callback_program = {
.pg_name = "NFSv4 callback", /* service name */ .pg_name = "NFSv4 callback", /* service name */
.pg_class = "nfs", /* authentication class */ .pg_class = "nfs", /* authentication class */
.pg_stats = &nfs4_callback_stats, .pg_stats = &nfs4_callback_stats,
.pg_authenticate = nfs_callback_auth, .pg_authenticate_obsolete = nfs_callback_auth,
}; };
...@@ -252,7 +252,7 @@ struct svc_program { ...@@ -252,7 +252,7 @@ struct svc_program {
char * pg_class; /* class name: services sharing authentication */ char * pg_class; /* class name: services sharing authentication */
struct svc_stat * pg_stats; /* rpc statistics */ struct svc_stat * pg_stats; /* rpc statistics */
/* Override authentication. NULL means use default */ /* Override authentication. NULL means use default */
int (*pg_authenticate)(struct svc_rqst *, u32 *); int (*pg_authenticate_obsolete)(struct svc_rqst *, u32 *);
}; };
/* /*
......
...@@ -311,8 +311,8 @@ svc_process(struct svc_serv *serv, struct svc_rqst *rqstp) ...@@ -311,8 +311,8 @@ svc_process(struct svc_serv *serv, struct svc_rqst *rqstp)
* We do this before anything else in order to get a decent * We do this before anything else in order to get a decent
* auth verifier. * auth verifier.
*/ */
if (progp->pg_authenticate != NULL) if (progp->pg_authenticate_obsolete != NULL)
auth_res = progp->pg_authenticate(rqstp, &auth_stat); auth_res = progp->pg_authenticate_obsolete(rqstp, &auth_stat);
else else
auth_res = svc_authenticate(rqstp, &auth_stat); auth_res = svc_authenticate(rqstp, &auth_stat);
switch (auth_res) { switch (auth_res) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment