summaryrefslogtreecommitdiff
path: root/fs/nfs/nfs4xdr.c
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@hammerspace.com>2022-02-27 20:46:24 +0300
committerTrond Myklebust <trond.myklebust@hammerspace.com>2022-03-02 16:43:39 +0300
commit0adf85b445c7fbc5d2df1f8c1bc54d62c4340237 (patch)
treeaf75a90b4370fdb12a876a5bd996274950ba05a1 /fs/nfs/nfs4xdr.c
parentb0365ccb0712efacf99936e94e92eb7ae63de4d5 (diff)
downloadlinux-0adf85b445c7fbc5d2df1f8c1bc54d62c4340237.tar.xz
NFS: Optimise away the previous cookie field
Replace the 'previous cookie' field in struct nfs_entry with the array->last_cookie. Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs/nfs4xdr.c')
-rw-r--r--fs/nfs/nfs4xdr.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c
index b7780b97dc4d..86a5f6516928 100644
--- a/fs/nfs/nfs4xdr.c
+++ b/fs/nfs/nfs4xdr.c
@@ -7508,7 +7508,6 @@ int nfs4_decode_dirent(struct xdr_stream *xdr, struct nfs_entry *entry,
if (entry->fattr->valid & NFS_ATTR_FATTR_TYPE)
entry->d_type = nfs_umode_to_dtype(entry->fattr->mode);
- entry->prev_cookie = entry->cookie;
entry->cookie = new_cookie;
return 0;