SUNRPC: Fixes for xdr_align_data()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 4 Dec 2020 20:16:46 +0000 (15:16 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 14 Dec 2020 11:51:07 +0000 (06:51 -0500)
commit9a20f6f4e6ba9713605fbf7e7426ca22f1181545
treedaeff278962badcaca252fa9546bc6177fba964f
parentc54e959b36cbdb0cb2f2805e3e945dd83476a5c7
SUNRPC: Fixes for xdr_align_data()

The main use case right now for xdr_align_data() is to shift the page
data to the left, and in practice shrink the total XDR data buffer.
This patch ensures that we fix up the accounting for the buffer length
as we shift that data around.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
include/linux/sunrpc/xdr.h
net/sunrpc/xdr.c