[PATCH 23/29] nfsd41: fix nfsd4_store_cache_entry comments

andros
2009-04-23T16:43:32Z

fs/nfsd/nfs4state.c | 16 +++-------------
1 files changed, 3 insertions(+), 13 deletions(-)

diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index efc9374..1e995ec 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -1001,14 +1001,8 @@ out_err:
}

/*
- * Cache the reply pages up to NFSD_PAGES_PER_SLOT + 1, clearing the previous
- * pages. We add a page to NFSD_PAGES_PER_SLOT for the case where the total
- * length of the XDR response is less than se_fmaxresp_cached
- * (NFSD_PAGES_PER_SLOT * PAGE_SIZE) but the xdr_buf pages is used for a
- * of the reply (e.g. readdir).
- *
- * Store the base and length of the rq_req.head[0] page
- * of the NFSv4.1 data, just past the rpc header.
+ * Copy all encoded operation responses past the sequence response into the
+ * slot's cache.
*/
__be32
nfsd4_store_cache_entry(struct nfsd4_compoundres *resp)
@@ -1027,11 +1021,7 @@ nfsd4_store_cache_entry(struct nfsd4_compoundres *resp)
entry->ce_opcnt = resp->opcnt;
entry->ce_status = resp->cstate.status;

- /*
- * Don't need a page to cache just the sequence operation - the slot
- * does this for us!
- */
-
+ /* Don't cache the sequence operation, use the slot values on replay. */
if (nfsd4_not_cached(resp)) {
entry->ce_datav.iov_len = 0;
dprintk("%s Just cache SEQUENCE. ce_cachethis %d\n", __func__,
--
1.5.4.3