NFS: Correct size calculation for create reply length
authorFrank Sorenson <sorenson@redhat.com>
Mon, 8 Mar 2021 18:12:13 +0000 (12:12 -0600)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 8 Mar 2021 18:40:12 +0000 (13:40 -0500)
commitad3dbe35c833c2d4d0bbf3f04c785d32f931e7c9
treeff0e47993c212c64c296eea96f00fb8fe02b085e
parenta0590473c5e6c4ef17c3132ad08fbad170f72d55
NFS: Correct size calculation for create reply length

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>
fs/nfs/nfs3xdr.c