]> git.baikalelectronics.ru Git - kernel.git/commit
NFSD: Optimize nfsd4_encode_operation()
authorChuck Lever <chuck.lever@oracle.com>
Fri, 22 Jul 2022 20:08:38 +0000 (16:08 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Sat, 30 Jul 2022 00:16:57 +0000 (20:16 -0400)
commite73de62786a4363e35210d42b9b4ff5895e6533c
tree0c404a2fdb9660498fd150b22cd8ad6f887a7f8e
parent93319a672cd1a726793954eb6a7e24d616004b02
NFSD: Optimize nfsd4_encode_operation()

write_bytes_to_xdr_buf() is a generic way to place a variable-length
data item in an already-reserved spot in the encoding buffer.
However, it is costly, and here, it is unnecessary because the
data item is fixed in size, the buffer destination address is
always word-aligned, and the destination location is already in
@p.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs4xdr.c