]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0a07d2de222a58020d9f15e68f0c0764de17a7f5
treedaeff278962badcaca252fa9546bc6177fba964f
parent808289427292ee6f2ce1b2519ebc27a57252db62
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