Commit c0aaa961 authored by Trond Myklebust's avatar Trond Myklebust

Remove bogus check on the size of NFSv4 'readdir' cookies.

parent 8eac1233
...@@ -51,12 +51,6 @@ ...@@ -51,12 +51,6 @@
#include <linux/nfs4.h> #include <linux/nfs4.h>
#include <linux/nfs_fs.h> #include <linux/nfs_fs.h>
/* Emperically, it seems that the NFS client gets confused if
* cookies larger than this are returned -- presumably a
* signedness issue?
*/
#define COOKIE_MAX 0x7fffffff
#define NFSDBG_FACILITY NFSDBG_XDR #define NFSDBG_FACILITY NFSDBG_XDR
/* Mapping from NFS error code to "errno" error code. */ /* Mapping from NFS error code to "errno" error code. */
...@@ -2188,9 +2182,6 @@ nfs4_decode_dirent(uint32_t *p, struct nfs_entry *entry, int plus) ...@@ -2188,9 +2182,6 @@ nfs4_decode_dirent(uint32_t *p, struct nfs_entry *entry, int plus)
entry->name = (const char *) p; entry->name = (const char *) p;
p += XDR_QUADLEN(entry->len); p += XDR_QUADLEN(entry->len);
if (entry->cookie > COOKIE_MAX)
entry->cookie = COOKIE_MAX;
/* /*
* In case the server doesn't return an inode number, * In case the server doesn't return an inode number,
* we fake one here. (We don't use inode number 0, * we fake one here. (We don't use inode number 0,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment