Lines Matching refs:fclus
80 static int fat_cache_lookup(struct inode *inode, int fclus,
91 /* Find the cache of "fclus" or nearest cache. */
92 if (p->fcluster <= fclus && hit->fcluster < p->fcluster) {
94 if ((hit->fcluster + hit->nr_contig) < fclus) {
97 offset = fclus - hit->fcluster;
217 static inline void cache_init(struct fat_cache_id *cid, int fclus, int dclus)
220 cid->fcluster = fclus;
225 int fat_get_cluster(struct inode *inode, int cluster, int *fclus, int *dclus)
236 *fclus = 0;
247 if (fat_cache_lookup(inode, cluster, &cid, fclus, dclus) < 0) {
256 while (*fclus < cluster) {
258 if (*fclus > limit) {
279 (*fclus)++;
282 cache_init(&cid, *fclus, *dclus);
294 int ret, fclus, dclus;
299 ret = fat_get_cluster(inode, cluster, &fclus, &dclus);