Lines Matching defs:cluster
42 /* This is not a first sector of cluster, or sec_per_clus == 1 */
1005 /* Zeroing the unused blocks on this cluster */
1055 int err, cluster;
1057 err = fat_alloc_clusters(dir, &cluster, 1);
1061 blknr = fat_clus_to_blknr(sbi, cluster);
1087 de[0].start = cpu_to_le16(cluster);
1088 de[0].starthi = cpu_to_le16(cluster >> 16);
1100 return cluster;
1103 fat_free_clusters(dir, cluster);
1119 int err, i, n, offset, cluster[2];
1122 * The minimum cluster size is 512bytes, and maximum entry
1123 * size is 32*slots (672bytes). So, iff the cluster size is
1130 err = fat_alloc_clusters(dir, cluster, *nr_cluster);
1135 * First stage: Fill the directory entry. NOTE: This cluster
1141 start_blknr = blknr = fat_clus_to_blknr(sbi, cluster[i]);
1171 /* Second stage: clear the rest of cluster, and write outs */
1176 return cluster[0];
1185 fat_free_clusters(dir, cluster[0]);
1278 int cluster, nr_cluster;
1281 * Third stage: allocate the cluster for new entries.
1282 * And initialize the cluster with new entries, then
1283 * add the cluster to dir.
1285 cluster = fat_add_new_entries(dir, slots, nr_slots, &nr_cluster,
1287 if (cluster < 0) {
1288 err = cluster;
1291 err = fat_chain_add(dir, cluster, nr_cluster);
1293 fat_free_clusters(dir, cluster);