aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/xdr3.h
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2021-09-30 17:06:15 -0400
committerJ. Bruce Fields <bfields@redhat.com>2021-10-02 16:10:01 -0400
commitf49b68ddc9d7dddf1530312108a648dd815a2f30 (patch)
treef334c2ae41449300456a13db6f2b7e8b85bd63c0 /fs/nfsd/xdr3.h
parentNFSD: Initialize pointer ni with NULL and not plain integer 0 (diff)
downloadlinux-dev-f49b68ddc9d7dddf1530312108a648dd815a2f30.tar.xz
linux-dev-f49b68ddc9d7dddf1530312108a648dd815a2f30.zip
SUNRPC: xdr_stream_subsegment() must handle non-zero page_bases
xdr_stream_subsegment() was introduced in commit c1346a1216ab ("NFSD: Replace the internals of the READ_BUF() macro"). There are two call sites for xdr_stream_subsegment(). One is nfsd4_decode_write(), and the other is nfsd4_decode_setxattr(). Currently neither of these call sites calls this API when xdr_buf::page_base is a non-zero value. However, I'm about to add a case where page_base will sometimes not be zero when nfsd4_decode_write() invokes this API. Replace the logic in xdr_stream_subsegment() that advances to the next data item in the xdr_stream with something more generic in order to handle this new use case. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/xdr3.h')
0 files changed, 0 insertions, 0 deletions