knfsd: Remove dead code from nfsd_cache_lookup

The preallocated cache entry is always set to type RC_NOCACHE, and that
type isn't changed until we later call nfsd_cache_update().

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
This commit is contained in:
Trond Myklebust 2018-10-01 10:41:54 -04:00 committed by J. Bruce Fields
parent 4c8e5537bb
commit 3e87da5145
1 changed files with 0 additions and 8 deletions

View File

@ -446,14 +446,6 @@ nfsd_cache_lookup(struct svc_rqst *rqstp)
rp->c_csum = csum; rp->c_csum = csum;
lru_put_end(b, rp); lru_put_end(b, rp);
/* release any buffer */
if (rp->c_type == RC_REPLBUFF) {
drc_mem_usage -= rp->c_replvec.iov_len;
kfree(rp->c_replvec.iov_base);
rp->c_replvec.iov_base = NULL;
}
rp->c_type = RC_NOCACHE;
out: out:
spin_unlock(&b->cache_lock); spin_unlock(&b->cache_lock);
return rtn; return rtn;