diff options
| author | Trond Myklebust <trond.myklebust@fys.uio.no> | 2003-04-08 04:19:41 +0200 |
|---|---|---|
| committer | Trond Myklebust <trond.myklebust@fys.uio.no> | 2003-04-08 04:19:41 +0200 |
| commit | c0aaa9614d1d974e8cef7aafc82b894f1a145a07 (patch) | |
| tree | dd4886d2a2fbb136a4f459e6136e961be3b70c7a | |
| parent | 8eac1233add6e0495e4cf323e014c5a90d16b6e5 (diff) | |
Remove bogus check on the size of NFSv4 'readdir' cookies.
| -rw-r--r-- | fs/nfs/nfs4xdr.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c index 4cafe6f1825b..df753fc10ff4 100644 --- a/fs/nfs/nfs4xdr.c +++ b/fs/nfs/nfs4xdr.c @@ -51,12 +51,6 @@ #include <linux/nfs4.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 /* 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) entry->name = (const char *) p; p += XDR_QUADLEN(entry->len); - if (entry->cookie > COOKIE_MAX) - entry->cookie = COOKIE_MAX; - /* * In case the server doesn't return an inode number, * we fake one here. (We don't use inode number 0, |
