Lines Matching defs:cache
3 * linux/fs/fat/cache.c
7 * Mar 1999. AV. Changed cache, so that it uses the starting cluster instead
41 struct fat_cache *cache = (struct fat_cache *)foo;
43 INIT_LIST_HEAD(&cache->cache_list);
67 static inline void fat_cache_free(struct fat_cache *cache)
69 BUG_ON(!list_empty(&cache->cache_list));
70 kmem_cache_free(fat_cache_cachep, cache);
74 struct fat_cache *cache)
76 if (MSDOS_I(inode)->cache_lru.next != &cache->cache_list)
77 list_move(&cache->cache_list, &MSDOS_I(inode)->cache_lru);
91 /* Find the cache of "fclus" or nearest cache. */
136 struct fat_cache *cache, *tmp;
138 if (new->fcluster == -1) /* dummy cache */
144 goto out; /* this cache was invalidated */
146 cache = fat_cache_merge(inode, new);
147 if (cache == NULL) {
161 cache = fat_cache_merge(inode, new);
162 if (cache != NULL) {
167 cache = tmp;
170 cache = list_entry(p, struct fat_cache, cache_list);
172 cache->fcluster = new->fcluster;
173 cache->dcluster = new->dcluster;
174 cache->nr_contig = new->nr_contig;
177 fat_cache_update_lru(inode, cache);
189 struct fat_cache *cache;
192 cache = list_entry(i->cache_lru.next,
194 list_del_init(&cache->cache_list);
196 fat_cache_free(cache);