SUNRPC: Optimise away unnecessary data moves in xdr_align_pages
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 2 Aug 2012 17:21:43 +0000 (13:21 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 28 Sep 2012 19:58:42 +0000 (15:58 -0400)
commita11a2bf4de5679fa0b63474c7d39bea2dac7d061
treed59f027797b629d029596f968ccf65dc7916509f
parent13fe4ba1b64c099843c75b4f0633ad30a4526637
SUNRPC: Optimise away unnecessary data moves in xdr_align_pages

We only have to call xdr_shrink_pagelen() if the remaining RPC
message does not fit in the page buffer length that we supplied
to xdr_align_pages().

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/xdr.c