mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
Merge branch 'for-linus' of git://linux-nfs.org/~bfields/linux
* 'for-linus' of git://linux-nfs.org/~bfields/linux: SUNPRC: Fix printk format warning nfsd: clean up svc_reserve_auth() NLM: don't requeue block if it was invalidated while GRANT_MSG was in flight NLM: don't reattempt GRANT_MSG when there is already an RPC in flight NLM: have server-side RPC clients default to soft RPC tasks NLM: set RPC_CLNT_CREATE_NOPING for NLM RPC clients
This commit is contained in:
commit
0c0d61ca93
4 changed files with 40 additions and 14 deletions
|
|
@ -409,16 +409,13 @@ char * svc_print_addr(struct svc_rqst *, char *, size_t);
|
|||
* for all cases without actually generating the checksum, so we just use a
|
||||
* static value.
|
||||
*/
|
||||
static inline void
|
||||
svc_reserve_auth(struct svc_rqst *rqstp, int space)
|
||||
static inline void svc_reserve_auth(struct svc_rqst *rqstp, int space)
|
||||
{
|
||||
int added_space = 0;
|
||||
int added_space = 0;
|
||||
|
||||
switch(rqstp->rq_authop->flavour) {
|
||||
case RPC_AUTH_GSS:
|
||||
added_space = RPC_MAX_AUTH_SIZE;
|
||||
}
|
||||
return svc_reserve(rqstp, space + added_space);
|
||||
if (rqstp->rq_authop->flavour)
|
||||
added_space = RPC_MAX_AUTH_SIZE;
|
||||
svc_reserve(rqstp, space + added_space);
|
||||
}
|
||||
|
||||
#endif /* SUNRPC_SVC_H */
|
||||
|
|
|
|||
Loading…
Reference in a new issue