From c0aaa9614d1d974e8cef7aafc82b894f1a145a07 Mon Sep 17 00:00:00 2001 From: Trond Myklebust Date: Tue, 8 Apr 2003 04:19:41 +0200 Subject: [PATCH] Remove bogus check on the size of NFSv4 'readdir' cookies. --- fs/nfs/nfs4xdr.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c index 4cafe6f1825bd..df753fc10ff40 100644 --- a/fs/nfs/nfs4xdr.c +++ b/fs/nfs/nfs4xdr.c @@ -51,12 +51,6 @@ #include #include -/* 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, -- 2.53.0