SUNRPC: Don't truncate tail data unnecessarily in xdr_shrink_pagelen
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Sun, 29 Aug 2010 16:13:16 +0000 (12:13 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sun, 29 Aug 2010 16:13:16 +0000 (12:13 -0400)
commitcf187c2d7ec763cdd459fe43933a5cc4f5f48e1b
tree05e87ee64fb3243b7fedb66c9a64caa6adad2c07
parent42d6d8ab51ca04afcb8a64759076da624cdb71e8
SUNRPC: Don't truncate tail data unnecessarily in xdr_shrink_pagelen

If we have unused buffer space, then we should make use of that rather
than unnecessarily truncating the message.

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