Skip to content
Commit 8d86e373 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

SUNRPC: Clean up helpers xdr_set_iov() and xdr_set_page_base()



Allow xdr_set_iov() to set a base so that we can use it to set the
cursor to a specific position in the kvec buffer.

If the new base overflows the kvec/pages buffer in either xdr_set_iov()
or xdr_set_page_base(), then truncate it so that we point to the end of
the buffer.

Finally, change both function to return the number of bytes remaining to
read in their buffers.

Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
parent 2b1f83d1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment