kernel_samsung_a53x/include/linux/sunrpc
Chuck Lever 0de18fdf8d SUNRPC: Optimize xdr_reserve_space()
[ Upstream commit 62ed448cc53b654036f7d7f3c99f299d79ad14c3 ]

Transitioning between encode buffers is quite infrequent. It happens
about 1 time in 400 calls to xdr_reserve_space(), measured on NFSD
with a typical build/test workload.

Force the compiler to remove that code from xdr_reserve_space(),
which is a hot path on both the server and the client. This change
reduces the size of xdr_reserve_space() from 10 cache lines to 2
when compiled with -Os.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Reviewed-by: J. Bruce Fields <bfields@fieldses.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 12:27:58 +01:00
..
addr.h
auth.h
auth_gss.h
bc_xprt.h
cache.h
clnt.h
debug.h
gss_api.h
gss_asn1.h
gss_err.h
gss_krb5.h
gss_krb5_enctypes.h
metrics.h
msg_prot.h SUNRPC: Move definition of XDR_UNIT 2024-11-19 12:27:28 +01:00
rpc_pipe_fs.h
rpc_rdma.h
rpc_rdma_cid.h
sched.h
stats.h
svc.h NFSD: Move svc_serv_ops::svo_function into struct svc_serv 2024-11-19 12:27:54 +01:00
svc_rdma.h SUNRPC: Rename svc_encode_read_payload() 2024-11-19 12:27:20 +01:00
svc_xprt.h SUNRPC: Remove svc_shutdown_net() 2024-11-19 12:27:54 +01:00
svcauth.h SUNRPC: Add svc_rqst::rq_auth_stat 2024-11-19 12:27:45 +01:00
svcauth_gss.h
svcsock.h
timer.h
types.h
xdr.h SUNRPC: Optimize xdr_reserve_space() 2024-11-19 12:27:58 +01:00
xprt.h
xprtmultipath.h
xprtrdma.h
xprtsock.h