diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2024-12-31 03:28:56 +0300 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2025-01-11 07:43:25 +0300 |
commit | 4163ee711cf141ada9e884a94e6e329431547fd7 (patch) | |
tree | 32a10cbf3bea92ea7705a4b3a787e99c866a7b43 /lib/mpi/mpi-inline.c | |
parent | b786caa65d4baa73257487e27ebab9004dc768d1 (diff) | |
download | linux-4163ee711cf141ada9e884a94e6e329431547fd7.tar.xz |
NFSD: Insulate nfsd4_encode_fattr4() from page boundaries in the encode buffer
Commit ab04de60ae1c ("NFSD: Optimize nfsd4_encode_fattr()") replaced
the use of write_bytes_to_xdr_buf() because it's expensive and the
data items to be encoded are already properly aligned.
However, there's no guarantee that the pointer returned from
xdr_reserve_space() will still point to the correct reserved space
in the encode buffer after one or more intervening calls to
xdr_reserve_space(). It just happens to work with the current
implementation of xdr_reserve_space().
This commit effectively reverts the optimization.
Reviewed-by: NeilBrown <neilb@suse.de>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'lib/mpi/mpi-inline.c')
0 files changed, 0 insertions, 0 deletions