nfsd4: fix rd_dircount enforcement
authorJ. Bruce Fields <bfields@redhat.com>
Wed, 20 Aug 2014 18:49:50 +0000 (14:49 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 8 Sep 2014 16:02:03 +0000 (12:02 -0400)
commitaee3776441461c14ba6d8ed9e2149933e65abb6e
tree3af702f6040859ed2e389218f2860407b3a3373b
parent7d1311b93e58ed55f3a31cc8f94c4b8fe988a2b9
nfsd4: fix rd_dircount enforcement

Commit 3b299709091b "nfsd4: enforce rd_dircount" totally misunderstood
rd_dircount; it refers to total non-attribute bytes returned, not number
of directory entries returned.

Bring the code into agreement with RFC 3530 section 14.2.24.

Cc: stable@vger.kernel.org
Fixes: 3b299709091b "nfsd4: enforce rd_dircount"
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4xdr.c