summaryrefslogtreecommitdiff
path: root/fs/nfsd/blocklayout.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2022-07-22 16:08:45 -0400
committerChuck Lever <chuck.lever@oracle.com>2022-07-29 20:16:57 -0400
commitab04de60ae1cc64ae16b77feae795311b97720c7 (patch)
tree72d6e9a7b83dad2ea754b9052ecdca9a2063fad3 /fs/nfsd/blocklayout.c
parent095a764b7afb06c9499b798c04eaa3cbf70ebe2d (diff)
NFSD: Optimize nfsd4_encode_fattr()
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. In nfsd4_encode_fattr(), it is unnecessary because the data item is fixed in size and the buffer destination address is always word-aligned. Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'fs/nfsd/blocklayout.c')
0 files changed, 0 insertions, 0 deletions