Lines Matching refs:cluster
225 int fat_get_cluster(struct inode *inode, int cluster, int *fclus, int *dclus) in fat_get_cluster() argument
244 if (cluster == 0) in fat_get_cluster()
247 if (fat_cache_lookup(inode, cluster, &cid, fclus, dclus) < 0) { in fat_get_cluster()
256 while (*fclus < cluster) { in fat_get_cluster()
291 static int fat_bmap_cluster(struct inode *inode, int cluster) in fat_bmap_cluster() argument
299 ret = fat_get_cluster(inode, cluster, &fclus, &dclus); in fat_bmap_cluster()
316 int cluster, offset; in fat_get_mapped_cluster() local
318 cluster = sector >> (sbi->cluster_bits - sb->s_blocksize_bits); in fat_get_mapped_cluster()
320 cluster = fat_bmap_cluster(inode, cluster); in fat_get_mapped_cluster()
321 if (cluster < 0) in fat_get_mapped_cluster()
322 return cluster; in fat_get_mapped_cluster()
323 else if (cluster) { in fat_get_mapped_cluster()
324 *bmap = fat_clus_to_blknr(sbi, cluster) + offset; in fat_get_mapped_cluster()