diff options
author | J. Bruce Fields <bfields@redhat.com> | 2013-08-29 15:42:52 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2014-05-30 17:31:49 -0400 |
commit | 082d4bd72a4527c6568f53f4a5de74e804666fa7 (patch) | |
tree | 9afd435d78a4e2ba045ddb3d2b2058817e3650ba /fs/nfsd/xdr4.h | |
parent | 1fcea5b20b74cb856f5cd27161fea5329079dbd7 (diff) | |
download | op-kernel-dev-082d4bd72a4527c6568f53f4a5de74e804666fa7.zip op-kernel-dev-082d4bd72a4527c6568f53f4a5de74e804666fa7.tar.gz |
nfsd4: "backfill" using write_bytes_to_xdr_buf
Normally xdr encoding proceeds in a single pass from start of a buffer
to end, but sometimes we have to write a few bytes to an earlier
position.
Use write_bytes_to_xdr_buf for these cases rather than saving a pointer
to write to. We plan to rewrite xdr_reserve_space to handle encoding
across page boundaries using a scratch buffer, and don't want to risk
writing to a pointer that was contained in a scratch buffer.
Also it will no longer be safe to calculate lengths by subtracting two
pointers, so use xdr_buf offsets instead.
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/xdr4.h')
0 files changed, 0 insertions, 0 deletions