diff options
| author | Aldo Ariel Panzardo <qwe.aldo@gmail.com> | 2026-09-15 14:39:01 -0300 |
|---|---|---|
| committer | Chuck Lever <cel@kernel.org> | 2026-10-11 23:12:04 -0400 |
| commit | fdce4109ec2220fedb42bc22967656e03fe4e9fe (patch) | |
| tree | d3241f8a8a6cc1f545125fd2e08369569b09d5f2 /rust/kernel/alloc/kvec/errors.rs | |
| parent | fcc202d324e5d2a21557ddd20fc3f96e08c4f72d (diff) | |
nfsd: use xdr_encode_opaque_fixed for all GETXATTR fragments
nfsd4_vbuf_to_stream() encodes the first fragment and a short final
fragment with xdr_encode_opaque_fixed(), but copies each full-page
fragment in the loop with a bare memcpy(). A PAGE_SIZE fragment is a
whole number of XDR words, so the memcpy() leaves no padding
unwritten; the two code paths differ in form, not in result.
Encode every fragment with xdr_encode_opaque_fixed(). The
short-fragment branch then reduces to the loop exit, and the padding
comment it carried goes with it.
Suggested-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Aldo Ariel Panzardo <qwe.aldo@gmail.com>
[ cel: Rewrote commit message ]
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Link: https://patch.msgid.link/20260915173902.3184534-1-qwe.aldo@gmail.com
Signed-off-by: Chuck Lever <cel@kernel.org>
Diffstat (limited to 'rust/kernel/alloc/kvec/errors.rs')
0 files changed, 0 insertions, 0 deletions
