]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd4: tweak rd_dircount accounting
authorJ. Bruce Fields <bfields@redhat.com>
Fri, 19 Dec 2014 23:01:35 +0000 (18:01 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 7 Jan 2015 19:48:10 +0000 (14:48 -0500)
commiteb4a84ffe9704f33c2939c4b240628c4e41b7482
tree220f651e1ee2843b7c6b2fda5e1d9d99dd6ec0a5
parent8e1f48b81b74def98bf9c6ecebe052d4bacfcefe
nfsd4: tweak rd_dircount accounting

RFC 3530 14.2.24 says

This value represents the length of the names of the directory
entries and the cookie value for these entries.  This length
represents the XDR encoding of the data (names and cookies)...

The "xdr encoding" of the name should probably include the 4 bytes for
the length.

But this is all just a hint so not worth e.g. backporting to stable.

Also reshuffle some lines to more clearly group together the
dircount-related code.

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