]> 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)
commitbd90f9e033fa45db523f08f78209375714b27b93
treedaeff278962badcaca252fa9546bc6177fba964f
parentd3cd512a2725bbc4fd72c4c2acea663088460ab5
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