Searched refs:nr_cluster (Results 1 – 5 of 5) sorted by relevance
| /linux/fs/fat/ |
| H A D | dir.c | 1214 int *nr_cluster, struct msdos_dir_entry **de, in fat_add_new_entries() argument 1230 *nr_cluster = (size + (sbi->cluster_size - 1)) >> sbi->cluster_bits; in fat_add_new_entries() 1231 BUG_ON(*nr_cluster > 2); in fat_add_new_entries() 1233 err = fat_alloc_clusters(dir, cluster, *nr_cluster); in fat_add_new_entries() 1268 } while (++i < *nr_cluster); in fat_add_new_entries() 1383 int cluster, nr_cluster; in fat_add_entries() local 1390 cluster = fat_add_new_entries(dir, slots, nr_slots, &nr_cluster, in fat_add_entries() 1396 err = fat_chain_add(dir, cluster, nr_cluster); in fat_add_entries() 1406 dir->i_size += nr_cluster << sbi->cluster_bits; in fat_add_entries() 1407 MSDOS_I(dir)->mmu_private += nr_cluster << sbi->cluster_bits; in fat_add_entries()
|
| H A D | misc.c | 107 int fat_chain_add(struct inode *inode, int new_dclus, int nr_cluster) in fat_chain_add() argument 166 inode->i_blocks += nr_cluster << (sbi->cluster_bits - 9); in fat_chain_add()
|
| H A D | file.c | 264 int nr_cluster; /* Number of clusters to be allocated */ in fat_fallocate() local 288 nr_cluster = (mm_bytes + (sbi->cluster_size - 1)) >> in fat_fallocate() 292 while (nr_cluster-- > 0) { in fat_fallocate()
|
| H A D | fatent.c | 466 int fat_alloc_clusters(struct inode *inode, int *cluster, int nr_cluster) in fat_alloc_clusters() argument 475 BUG_ON(nr_cluster > (MAX_BUF_PER_PAGE / 2)); /* fixed limit */ in fat_alloc_clusters() 479 sbi->free_clusters < nr_cluster) { in fat_alloc_clusters() 515 if (idx_clus == nr_cluster) in fat_alloc_clusters()
|
| H A D | fat.h | 394 int nr_cluster); 464 extern int fat_chain_add(struct inode *inode, int new_dclus, int nr_cluster);
|