diff options
| author | Trond Myklebust <trondmy@gmail.com> | 2018-10-01 10:41:54 -0400 |
|---|---|---|
| committer | J. Bruce Fields <bfields@redhat.com> | 2018-10-29 16:58:04 -0400 |
| commit | 3e87da5145fc25e18fb934eb496f4e7c4d038e71 (patch) | |
| tree | 1fd189fba3a2eecb889f8f334b7becdbcde9075f | |
| parent | 4c8e5537bb28f0e4b2ca60ecb0ca1ea12b82adf6 (diff) | |
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>
| -rw-r--r-- | fs/nfsd/nfscache.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/fs/nfsd/nfscache.c b/fs/nfsd/nfscache.c index dbdeb9d6af03..cef4686f87ef 100644 --- a/fs/nfsd/nfscache.c +++ b/fs/nfsd/nfscache.c | |||
| @@ -446,14 +446,6 @@ nfsd_cache_lookup(struct svc_rqst *rqstp) | |||
| 446 | rp->c_csum = csum; | 446 | rp->c_csum = csum; |
| 447 | 447 | ||
| 448 | lru_put_end(b, rp); | 448 | 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; | ||
| 457 | out: | 449 | out: |
| 458 | spin_unlock(&b->cache_lock); | 450 | spin_unlock(&b->cache_lock); |
| 459 | return rtn; | 451 | return rtn; |
