Lines Matching defs:cluster
57 /* This is not a first sector of cluster, or sec_per_clus == 1 */
1088 /* Zeroing the unused blocks on this cluster */
1142 int err, cluster;
1144 err = fat_alloc_clusters(dir, &cluster, 1);
1148 blknr = fat_clus_to_blknr(sbi, cluster);
1177 fat_set_start(&de[0], cluster);
1189 return cluster;
1192 fat_free_clusters(dir, cluster);
1207 int err, i, n, offset, cluster[2];
1210 * The minimum cluster size is 512bytes, and maximum entry
1211 * size is 32*slots (672bytes). So, iff the cluster size is
1218 err = fat_alloc_clusters(dir, cluster, *nr_cluster);
1223 * First stage: Fill the directory entry. NOTE: This cluster
1229 start_blknr = blknr = fat_clus_to_blknr(sbi, cluster[i]);
1262 /* Second stage: clear the rest of cluster, and write outs */
1267 return cluster[0];
1276 fat_free_clusters(dir, cluster[0]);
1369 int cluster, nr_cluster;
1372 * Third stage: allocate the cluster for new entries.
1373 * And initialize the cluster with new entries, then
1374 * add the cluster to dir.
1376 cluster = fat_add_new_entries(dir, slots, nr_slots, &nr_cluster,
1378 if (cluster < 0) {
1379 err = cluster;
1382 err = fat_chain_add(dir, cluster, nr_cluster);
1384 fat_free_clusters(dir, cluster);