Searched refs:nr_cluster (Results 1 - 6 of 6) sorted by relevance

/linux-master/fs/fat/
H A Ddir.c1199 int *nr_cluster, struct msdos_dir_entry **de,
1215 *nr_cluster = (size + (sbi->cluster_size - 1)) >> sbi->cluster_bits;
1216 BUG_ON(*nr_cluster > 2);
1218 err = fat_alloc_clusters(dir, cluster, *nr_cluster);
1253 } while (++i < *nr_cluster);
1369 int cluster, nr_cluster; local
1376 cluster = fat_add_new_entries(dir, slots, nr_slots, &nr_cluster,
1382 err = fat_chain_add(dir, cluster, nr_cluster);
1392 dir->i_size += nr_cluster << sbi->cluster_bits;
1393 MSDOS_I(dir)->mmu_private += nr_cluster << sb
1198 fat_add_new_entries(struct inode *dir, void *slots, int nr_slots, int *nr_cluster, struct msdos_dir_entry **de, struct buffer_head **bh, loff_t *i_pos) argument
[all...]
H A Dmisc.c107 int fat_chain_add(struct inode *inode, int new_dclus, int nr_cluster) argument
166 inode->i_blocks += nr_cluster << (sbi->cluster_bits - 9);
H A Dfile.c263 int nr_cluster; /* Number of clusters to be allocated */ local
287 nr_cluster = (mm_bytes + (sbi->cluster_size - 1)) >>
291 while (nr_cluster-- > 0) {
H A Dfat.h391 int nr_cluster);
452 extern int fat_chain_add(struct inode *inode, int new_dclus, int nr_cluster);
H A Dfatent.c466 int fat_alloc_clusters(struct inode *inode, int *cluster, int nr_cluster) argument
475 BUG_ON(nr_cluster > (MAX_BUF_PER_PAGE / 2)); /* fixed limit */
479 sbi->free_clusters < nr_cluster) {
515 if (idx_clus == nr_cluster)
/linux-master/mm/
H A Dswapfile.c3101 unsigned long ci, nr_cluster; local
3117 nr_cluster = DIV_ROUND_UP(maxpages, SWAPFILE_CLUSTER);
3119 cluster_info = kvcalloc(nr_cluster, sizeof(*cluster_info),
3126 for (ci = 0; ci < nr_cluster; ci++)

Completed in 129 milliseconds