Lines Matching defs:fclus
81 static int fat_cache_lookup(struct inode *inode, int fclus,
92 /* Find the cache of "fclus" or nearest cache. */
93 if (p->fcluster <= fclus && hit->fcluster < p->fcluster) {
95 if ((hit->fcluster + hit->nr_contig) < fclus) {
98 offset = fclus - hit->fcluster;
210 static inline void cache_init(struct fat_cache_id *cid, int fclus, int dclus)
213 cid->fcluster = fclus;
218 int fat_get_cluster(struct inode *inode, int cluster, int *fclus, int *dclus)
228 *fclus = 0;
233 if (fat_cache_lookup(inode, cluster, &cid, fclus, dclus) < 0) {
242 while (*fclus < cluster) {
244 if (*fclus > limit) {
266 (*fclus)++;
269 cache_init(&cid, *fclus, *dclus);
281 int ret, fclus, dclus;
286 ret = fat_get_cluster(inode, cluster, &fclus, &dclus);