Lines Matching defs:cluster
7 * Mar 1999. AV. Changed cache, so that it uses the starting cluster instead
21 int fcluster; /* cluster number in the file. */
22 int dcluster; /* cluster number on disk. */
123 /* Find the same part as "new" in cluster-chain. */
225 int fat_get_cluster(struct inode *inode, int cluster, int *fclus, int *dclus)
240 "%s: invalid start cluster (i_pos %lld, start %08x)",
244 if (cluster == 0)
247 if (fat_cache_lookup(inode, cluster, &cid, fclus, dclus) < 0) {
256 while (*fclus < cluster) {
257 /* prevent the infinite loop of cluster chain */
260 "%s: detected the cluster chain loop (i_pos %lld)",
271 "%s: invalid cluster chain (i_pos %lld)",
291 static int fat_bmap_cluster(struct inode *inode, int cluster)
299 ret = fat_get_cluster(inode, cluster, &fclus, &dclus);
316 int cluster, offset;
318 cluster = sector >> (sbi->cluster_bits - sb->s_blocksize_bits);
320 cluster = fat_bmap_cluster(inode, cluster);
321 if (cluster < 0)
322 return cluster;
323 else if (cluster) {
324 *bmap = fat_clus_to_blknr(sbi, cluster) + offset;