aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/xdr4.h
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2011-01-24 12:11:02 -0500
committerJ. Bruce Fields <bfields@redhat.com>2011-07-18 09:39:01 -0400
commit1091006c5eb15cba56785bd5b498a8d0b9546903 (patch)
treeb51fad1bb57284b3eea4308c02652c4888b85860 /fs/nfsd/xdr4.h
parent3e98abffd1665b884a322aedcd528577842f762f (diff)
nfsd: turn on reply cache for NFSv4
It's sort of ridiculous that we've never had a working reply cache for NFSv4. On the other hand, we may still not: our current reply cache is likely not very good, especially in the TCP case (which is the only case that matters for v4). What we really need here is some serious testing. Anyway, here's a start. Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/xdr4.h')
-rw-r--r--fs/nfsd/xdr4.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/nfsd/xdr4.h b/fs/nfsd/xdr4.h
index 351348c79631..d2a8d04428c7 100644
--- a/fs/nfsd/xdr4.h
+++ b/fs/nfsd/xdr4.h
@@ -457,6 +457,8 @@ struct nfsd4_op {
457 struct nfs4_replay * replay; 457 struct nfs4_replay * replay;
458}; 458};
459 459
460bool nfsd4_cache_this_op(struct nfsd4_op *);
461
460struct nfsd4_compoundargs { 462struct nfsd4_compoundargs {
461 /* scratch variables for XDR decode */ 463 /* scratch variables for XDR decode */
462 __be32 * p; 464 __be32 * p;
@@ -479,6 +481,7 @@ struct nfsd4_compoundargs {
479 u32 opcnt; 481 u32 opcnt;
480 struct nfsd4_op *ops; 482 struct nfsd4_op *ops;
481 struct nfsd4_op iops[8]; 483 struct nfsd4_op iops[8];
484 int cachetype;
482}; 485};
483 486
484struct nfsd4_compoundres { 487struct nfsd4_compoundres {