diff options
Diffstat (limited to 'include/linux/sunrpc')
| -rw-r--r-- | include/linux/sunrpc/cache.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/sunrpc/cache.h b/include/linux/sunrpc/cache.h index 7bf3e84b92f4..0e1febf4e5bc 100644 --- a/include/linux/sunrpc/cache.h +++ b/include/linux/sunrpc/cache.h | |||
| @@ -228,4 +228,10 @@ static inline time_t get_expiry(char **bpp) | |||
| 228 | return rv; | 228 | return rv; |
| 229 | } | 229 | } |
| 230 | 230 | ||
| 231 | static inline void sunrpc_invalidate(struct cache_head *h, | ||
| 232 | struct cache_detail *detail) | ||
| 233 | { | ||
| 234 | h->expiry_time = get_seconds() - 1; | ||
| 235 | detail->nextcheck = get_seconds(); | ||
| 236 | } | ||
| 231 | #endif /* _LINUX_SUNRPC_CACHE_H_ */ | 237 | #endif /* _LINUX_SUNRPC_CACHE_H_ */ |
