diff options
author | 2020-11-21 14:50:43 -0500 | |
---|---|---|
committer | 2020-12-02 14:05:53 -0500 | |
commit | 8d86e373b0ef52d091ced9583ffbb33ad2771576 (patch) | |
tree | a73b499bafee1d7d38c88f0389e57e490b020640 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | SUNRPC: Fix up typo in xdr_init_decode() (diff) | |
download | linux-rng-8d86e373b0ef52d091ced9583ffbb33ad2771576.tar.xz linux-rng-8d86e373b0ef52d091ced9583ffbb33ad2771576.zip |
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: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions