Skip to content

Commit 3e87da5

Browse files
trondmyJ. Bruce Fields
authored andcommitted
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>
1 parent 4c8e553 commit 3e87da5

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

fs/nfsd/nfscache.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -446,14 +446,6 @@ nfsd_cache_lookup(struct svc_rqst *rqstp)
446446
rp->c_csum = csum;
447447

448448
lru_put_end(b, rp);
449-
450-
/* release any buffer */
451-
if (rp->c_type == RC_REPLBUFF) {
452-
drc_mem_usage -= rp->c_replvec.iov_len;
453-
kfree(rp->c_replvec.iov_base);
454-
rp->c_replvec.iov_base = NULL;
455-
}
456-
rp->c_type = RC_NOCACHE;
457449
out:
458450
spin_unlock(&b->cache_lock);
459451
return rtn;

0 commit comments

Comments
 (0)