Lines Matching refs:cid
84 unsigned int fclus, struct exfat_cache_id *cid,
108 cid->id = ei->cache_valid_id;
109 cid->nr_contig = hit->nr_contig;
110 cid->fcluster = hit->fcluster;
111 cid->dcluster = hit->dcluster;
112 *cached_fclus = cid->fcluster + offset;
113 *cached_dclus = cid->dcluster + offset;
220 static inline int cache_contiguous(struct exfat_cache_id *cid,
223 cid->nr_contig++;
224 return cid->dcluster + cid->nr_contig == dclus;
227 static inline void cache_init(struct exfat_cache_id *cid,
230 cid->id = EXFAT_CACHE_VALID;
231 cid->fcluster = fclus;
232 cid->dcluster = dclus;
233 cid->nr_contig = 0;
244 struct exfat_cache_id cid;
264 cache_init(&cid, EXFAT_EOF_CLUSTER, EXFAT_EOF_CLUSTER);
266 if (exfat_cache_lookup(inode, cluster, &cid, fclus, dclus) ==
272 WARN_ON(cid.id != EXFAT_CACHE_VALID ||
273 cid.fcluster != EXFAT_EOF_CLUSTER ||
274 cid.dcluster != EXFAT_EOF_CLUSTER ||
275 cid.nr_contig != 0);
308 if (!cache_contiguous(&cid, *dclus))
309 cache_init(&cid, *fclus, *dclus);
312 exfat_cache_add(inode, &cid);