mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 14:20:55 +07:00
nfsd: remove redundant test from nfsd_reply_cache_free
Entries can only get a c_type of RC_REPLBUFF iff they are RC_DONE. Therefore the test for RC_DONE isn't necessary here. Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
This commit is contained in:
parent
f09841fdfa
commit
25e6b8b0e1
@ -65,7 +65,7 @@ nfsd_reply_cache_alloc(void)
|
||||
static void
|
||||
nfsd_reply_cache_free_locked(struct svc_cacherep *rp)
|
||||
{
|
||||
if (rp->c_state == RC_DONE && rp->c_type == RC_REPLBUFF)
|
||||
if (rp->c_type == RC_REPLBUFF)
|
||||
kfree(rp->c_replvec.iov_base);
|
||||
list_del(&rp->c_lru);
|
||||
kmem_cache_free(drc_slab, rp);
|
||||
|
Loading…
Reference in New Issue
Block a user