summaryrefslogtreecommitdiff
path: root/include/linux/nfsd/cache.h
diff options
context:
space:
mode:
authorNeil Brown <neilb@cse.unsw.edu.au>2005-03-04 17:14:56 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-03-04 17:14:56 -0800
commitedd9a0079e105fbd06b699c276d19fe4160dd1e7 (patch)
treed0f0f5916ebec0de3f9a8ecc14f1a05b7353faf8 /include/linux/nfsd/cache.h
parentdd074e20d900243cb081d6ad9a6a553efc0a7556 (diff)
[PATCH] nfsd: change nfsd reply cache to use list.h lists
also kmalloc the cache one entry at a time, instead of in one big slab. Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/nfsd/cache.h')
-rw-r--r--include/linux/nfsd/cache.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/linux/nfsd/cache.h b/include/linux/nfsd/cache.h
index cfffc76fc1e1..c3a3557c2a5b 100644
--- a/include/linux/nfsd/cache.h
+++ b/include/linux/nfsd/cache.h
@@ -19,10 +19,9 @@
* be hash_next and hash_prev.
*/
struct svc_cacherep {
- struct svc_cacherep * c_hash_next;
- struct svc_cacherep * c_hash_prev;
- struct svc_cacherep * c_lru_next;
- struct svc_cacherep * c_lru_prev;
+ struct hlist_node c_hash;
+ struct list_head c_lru;
+
unsigned char c_state, /* unused, inprog, done */
c_type, /* status, buffer */
c_secure : 1; /* req came from port < 1024 */