]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
nfsd4: Remove check for a 32-bit cookie in nfsd4_readdir()
authorBernd Schubert <bernd.schubert@itwm.fraunhofer.de>
Mon, 8 Aug 2011 15:38:08 +0000 (17:38 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 7 Nov 2011 21:47:25 +0000 (13:47 -0800)
commit2de551b315bd9e2cde90479bba5de1105d8411bd
tree6c8d550c0f376bfe72c2b9cda7cdd27e95c01fd9
parent467b9b729d746c37c8597a37603b6de3c3ec53b0
nfsd4: Remove check for a 32-bit cookie in nfsd4_readdir()

commit 832023bffb4b493f230be901f681020caf3ed1f8 upstream.

Fan Yong <yong.fan@whamcloud.com> noticed setting
FMODE_32bithash wouldn't work with nfsd v4, as
nfsd4_readdir() checks for 32 bit cookies. However, according to RFC 3530
cookies have a 64 bit type and cookies are also defined as u64 in
'struct nfsd4_readdir'. So remove the test for >32-bit values.

Signed-off-by: Bernd Schubert <bernd.schubert@itwm.fraunhofer.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/nfsd/nfs4proc.c