NFS: Correct size calculation for create reply length
authorFrank Sorenson <sorenson@redhat.com>
Mon, 8 Mar 2021 18:12:13 +0000 (12:12 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Mar 2021 12:31:49 +0000 (14:31 +0200)
commit9d1a5392aca1943bfea6f424346764db75018431
tree0539ecb60895a849f99fa0792a07d03ff6dfbaf6
parent2479c6b9ef36f9fd7ed37dbeb8f220bdeb175710
NFS: Correct size calculation for create reply length

[ Upstream commit ad3dbe35c833c2d4d0bbf3f04c785d32f931e7c9 ]

CREATE requests return a post_op_fh3, rather than nfs_fh3. The
post_op_fh3 includes an extra word to indicate 'handle_follows'.

Without that additional word, create fails when full 64-byte
filehandles are in use.

Add NFS3_post_op_fh_sz, and correct the size calculation for
NFS3_createres_sz.

Signed-off-by: Frank Sorenson <sorenson@redhat.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/nfs3xdr.c