diff options
author | NeilBrown <neilb@suse.de> | 2006-03-27 04:15:08 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-27 11:44:43 -0500 |
commit | ebd0cb1af3be2729cc1f574681dfba01fcf458d9 (patch) | |
tree | ed97a94406ed973573576fca585e1c87c15a4d05 /include/linux/sunrpc/cache.h | |
parent | 4d90452cb23b08a9a9dd001010f0ee6b1ee83a45 (diff) |
[PATCH] knfsd: Unexport cache_fresh and fix a small race
Cache_fresh is now only used in cache.c, so unexport it.
Part of cache_fresh (setting CACHE_VALID) should really be done under the
lock, while part (calling cache_revisit_request etc) must be done outside the
lock. So we split it up appropriately.
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/sunrpc/cache.h')
-rw-r--r-- | include/linux/sunrpc/cache.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/sunrpc/cache.h b/include/linux/sunrpc/cache.h index afc481dd02dd..a37fead1873b 100644 --- a/include/linux/sunrpc/cache.h +++ b/include/linux/sunrpc/cache.h | |||
@@ -165,8 +165,6 @@ static inline int cache_put(struct cache_head *h, struct cache_detail *cd) | |||
165 | } | 165 | } |
166 | 166 | ||
167 | extern void cache_init(struct cache_head *h); | 167 | extern void cache_init(struct cache_head *h); |
168 | extern void cache_fresh(struct cache_detail *detail, | ||
169 | struct cache_head *head, time_t expiry); | ||
170 | extern int cache_check(struct cache_detail *detail, | 168 | extern int cache_check(struct cache_detail *detail, |
171 | struct cache_head *h, struct cache_req *rqstp); | 169 | struct cache_head *h, struct cache_req *rqstp); |
172 | extern void cache_flush(void); | 170 | extern void cache_flush(void); |