Lines Matching refs:cluster
220 int fat_get_cluster(struct inode *inode, int cluster, int *fclus, int *dclus) in fat_get_cluster() argument
239 if (cluster == 0) in fat_get_cluster()
242 if (fat_cache_lookup(inode, cluster, &cid, fclus, dclus) < 0) { in fat_get_cluster()
251 while (*fclus < cluster) { in fat_get_cluster()
286 static int fat_bmap_cluster(struct inode *inode, int cluster) in fat_bmap_cluster() argument
294 ret = fat_get_cluster(inode, cluster, &fclus, &dclus); in fat_bmap_cluster()
311 int cluster, offset; in fat_get_mapped_cluster() local
313 cluster = sector >> (sbi->cluster_bits - sb->s_blocksize_bits); in fat_get_mapped_cluster()
315 cluster = fat_bmap_cluster(inode, cluster); in fat_get_mapped_cluster()
316 if (cluster < 0) in fat_get_mapped_cluster()
317 return cluster; in fat_get_mapped_cluster()
318 else if (cluster) { in fat_get_mapped_cluster()
319 *bmap = fat_clus_to_blknr(sbi, cluster) + offset; in fat_get_mapped_cluster()