Lines Matching refs:cid
81 struct fat_cache_id *cid,
105 cid->id = MSDOS_I(inode)->cache_valid_id;
106 cid->nr_contig = hit->nr_contig;
107 cid->fcluster = hit->fcluster;
108 cid->dcluster = hit->dcluster;
109 *cached_fclus = cid->fcluster + offset;
110 *cached_dclus = cid->dcluster + offset;
211 static inline int cache_contiguous(struct fat_cache_id *cid, int dclus)
213 cid->nr_contig++;
214 return ((cid->dcluster + cid->nr_contig) == dclus);
217 static inline void cache_init(struct fat_cache_id *cid, int fclus, int dclus)
219 cid->id = FAT_CACHE_VALID;
220 cid->fcluster = fclus;
221 cid->dcluster = dclus;
222 cid->nr_contig = 0;
231 struct fat_cache_id cid;
247 if (fat_cache_lookup(inode, cluster, &cid, fclus, dclus) < 0) {
252 cache_init(&cid, -1, -1);
276 fat_cache_add(inode, &cid);
281 if (!cache_contiguous(&cid, *dclus))
282 cache_init(&cid, *fclus, *dclus);
285 fat_cache_add(inode, &cid);