diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-11 12:19:47 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-11 12:19:47 -0500 |
commit | 0c0d61ca93d111c521182c0909e478fa709e05c6 (patch) | |
tree | be690362142ec79a673f85d7b2b7323102fab6f8 /include | |
parent | eedcdefb1ad75de9cc0889b247524be64cc244ef (diff) | |
parent | bb50c8012cbd85b8e105584b32e4d5a2d335dcef (diff) |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/sunrpc/svc.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/include/linux/sunrpc/svc.h b/include/linux/sunrpc/svc.h index 64c771056187..64c97552964a 100644 --- a/include/linux/sunrpc/svc.h +++ b/include/linux/sunrpc/svc.h | |||
@@ -409,16 +409,13 @@ char * svc_print_addr(struct svc_rqst *, char *, size_t); | |||
409 | * for all cases without actually generating the checksum, so we just use a | 409 | * for all cases without actually generating the checksum, so we just use a |
410 | * static value. | 410 | * static value. |
411 | */ | 411 | */ |
412 | static inline void | 412 | static inline void svc_reserve_auth(struct svc_rqst *rqstp, int space) |
413 | svc_reserve_auth(struct svc_rqst *rqstp, int space) | ||
414 | { | 413 | { |
415 | int added_space = 0; | 414 | int added_space = 0; |
416 | 415 | ||
417 | switch(rqstp->rq_authop->flavour) { | 416 | if (rqstp->rq_authop->flavour) |
418 | case RPC_AUTH_GSS: | 417 | added_space = RPC_MAX_AUTH_SIZE; |
419 | added_space = RPC_MAX_AUTH_SIZE; | 418 | svc_reserve(rqstp, space + added_space); |
420 | } | ||
421 | return svc_reserve(rqstp, space + added_space); | ||
422 | } | 419 | } |
423 | 420 | ||
424 | #endif /* SUNRPC_SVC_H */ | 421 | #endif /* SUNRPC_SVC_H */ |