diff options
Diffstat (limited to 'include/linux/sunrpc/cache.h')
| -rw-r--r-- | include/linux/sunrpc/cache.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/include/linux/sunrpc/cache.h b/include/linux/sunrpc/cache.h index 3699dff7db8f..bd7a6b0a87af 100644 --- a/include/linux/sunrpc/cache.h +++ b/include/linux/sunrpc/cache.h | |||
| @@ -136,16 +136,6 @@ sunrpc_cache_update(struct cache_detail *detail, | |||
| 136 | struct cache_head *new, struct cache_head *old, int hash); | 136 | struct cache_head *new, struct cache_head *old, int hash); |
| 137 | 137 | ||
| 138 | 138 | ||
| 139 | #define cache_for_each(pos, detail, index, member) \ | ||
| 140 | for (({read_lock(&(detail)->hash_lock); index = (detail)->hash_size;}) ; \ | ||
| 141 | ({if (index==0)read_unlock(&(detail)->hash_lock); index--;}); \ | ||
| 142 | ) \ | ||
| 143 | for (pos = container_of((detail)->hash_table[index], typeof(*pos), member); \ | ||
| 144 | &pos->member; \ | ||
| 145 | pos = container_of(pos->member.next, typeof(*pos), member)) | ||
| 146 | |||
| 147 | |||
| 148 | |||
| 149 | extern void cache_clean_deferred(void *owner); | 139 | extern void cache_clean_deferred(void *owner); |
| 150 | 140 | ||
| 151 | static inline struct cache_head *cache_get(struct cache_head *h) | 141 | static inline struct cache_head *cache_get(struct cache_head *h) |
