From: Andy Adamson <andros@xxxxxxxxxx> In preparation to remove struct nfsd4_cache_entry Signed-off-by: Andy Adamson <andros@xxxxxxxxxx> --- fs/nfsd/nfs4state.c | 4 ++-- include/linux/nfsd/state.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index ae1f316..d237e62 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c @@ -1080,7 +1080,7 @@ nfsd4_store_cache_entry(struct nfsd4_compoundres *resp) return; nfsd4_release_respages(entry->ce_respages, entry->ce_resused); - entry->ce_opcnt = resp->opcnt; + slot->sl_opcnt = resp->opcnt; entry->ce_status = resp->cstate.status; /* @@ -1190,7 +1190,7 @@ nfsd4_replay_cache_entry(struct nfsd4_compoundres *resp, } resp->rqstp->rq_resused = entry->ce_resused; - resp->opcnt = entry->ce_opcnt; + resp->opcnt = slot->sl_opcnt; resp->cstate.iovlen = entry->ce_datav.iov_len + entry->ce_rpchdrlen; status = entry->ce_status; diff --git a/include/linux/nfsd/state.h b/include/linux/nfsd/state.h index 76e456c..46aabb1 100644 --- a/include/linux/nfsd/state.h +++ b/include/linux/nfsd/state.h @@ -127,6 +127,7 @@ struct nfsd4_slot { bool sl_inuse; u32 sl_seqid; int sl_cachethis; + int sl_opcnt; u32 sl_datalen; char sl_data[NFSD_SLOT_CACHE_SIZE]; struct nfsd4_cache_entry sl_cache_entry; -- 1.5.4.3 -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html