]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd4: enforce rd_dircount
authorJ. Bruce Fields <bfields@redhat.com>
Fri, 21 Mar 2014 01:20:26 +0000 (21:20 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 30 May 2014 21:32:04 +0000 (17:32 -0400)
commit4621ec5b8d42e845c10bacb9b8b7aaa961694159
tree2d514a4417d20b1a374d8d862ecc787ea0543936
parent3ed5e8b12c39a7b55e1df5facb46f8cb7f85cc86
nfsd4: enforce rd_dircount

As long as we're here, let's enforce the protocol's limit on the number
of directory entries to return in a readdir.

I don't think anyone's ever noticed our lack of enforcement, but maybe
there's more of a chance they will now that we allow larger readdirs.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4xdr.c