mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
nfs41 do not allocate unused back channel pages
Signed-off-by: Andy Adamson <[email protected]> [[email protected]: moved definition of svc_is_backchannel() into include/linux/sunrpc/bc_xprt.h.] Signed-off-by: Trond Myklebust <[email protected]>
This commit is contained in:
parent
9733f0d928
commit
ba17686f62
2 changed files with 19 additions and 0 deletions
|
|
@ -506,6 +506,10 @@ svc_init_buffer(struct svc_rqst *rqstp, unsigned int size)
|
|||
{
|
||||
unsigned int pages, arghi;
|
||||
|
||||
/* bc_xprt uses fore channel allocated buffers */
|
||||
if (svc_is_backchannel(rqstp))
|
||||
return 1;
|
||||
|
||||
pages = size / PAGE_SIZE + 1; /* extra page as we hold both request and reply.
|
||||
* We assume one is at most one page
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue