Skip to content
Commit 8d18f6c5 authored by Anna Schumaker's avatar Anna Schumaker
Browse files

NFSv4.2: Fix READ_PLUS size calculations



I bump the decode_read_plus_maxsz to account for hole segments, but I
need to subtract out this increase when calling
rpc_prepare_reply_pages() so the common case of single data segment
replies can be directly placed into the xdr pages without needing to be
shifted around.

Reported-by: default avatarChuck Lever <chuck.lever@oracle.com>
Fixes: d3b00a80 ("NFS: Replace the READ_PLUS decoding code")
Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
parent bb05a617
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment