Searched refs:nr_cluster (Results 1 – 6 of 6) sorted by relevance
/kernel/linux/linux-5.10/fs/fat/ |
D | dir.c | 1199 int *nr_cluster, struct msdos_dir_entry **de, in fat_add_new_entries() argument 1215 *nr_cluster = (size + (sbi->cluster_size - 1)) >> sbi->cluster_bits; in fat_add_new_entries() 1216 BUG_ON(*nr_cluster > 2); in fat_add_new_entries() 1218 err = fat_alloc_clusters(dir, cluster, *nr_cluster); in fat_add_new_entries() 1253 } while (++i < *nr_cluster); in fat_add_new_entries() 1369 int cluster, nr_cluster; in fat_add_entries() local 1376 cluster = fat_add_new_entries(dir, slots, nr_slots, &nr_cluster, in fat_add_entries() 1382 err = fat_chain_add(dir, cluster, nr_cluster); in fat_add_entries() 1392 dir->i_size += nr_cluster << sbi->cluster_bits; in fat_add_entries() 1393 MSDOS_I(dir)->mmu_private += nr_cluster << sbi->cluster_bits; in fat_add_entries()
|
D | misc.c | 101 int fat_chain_add(struct inode *inode, int new_dclus, int nr_cluster) in fat_chain_add() argument 160 inode->i_blocks += nr_cluster << (sbi->cluster_bits - 9); in fat_chain_add()
|
D | file.c | 262 int nr_cluster; /* Number of clusters to be allocated */ in fat_fallocate() local 286 nr_cluster = (mm_bytes + (sbi->cluster_size - 1)) >> in fat_fallocate() 290 while (nr_cluster-- > 0) { in fat_fallocate()
|
D | fatent.c | 465 int fat_alloc_clusters(struct inode *inode, int *cluster, int nr_cluster) in fat_alloc_clusters() argument 474 BUG_ON(nr_cluster > (MAX_BUF_PER_PAGE / 2)); /* fixed limit */ in fat_alloc_clusters() 478 sbi->free_clusters < nr_cluster) { in fat_alloc_clusters() 514 if (idx_clus == nr_cluster) in fat_alloc_clusters()
|
D | fat.h | 390 int nr_cluster); 442 extern int fat_chain_add(struct inode *inode, int new_dclus, int nr_cluster);
|
/kernel/linux/linux-5.10/mm/ |
D | swapfile.c | 3261 unsigned long ci, nr_cluster; in SYSCALL_DEFINE2() local 3277 nr_cluster = DIV_ROUND_UP(maxpages, SWAPFILE_CLUSTER); in SYSCALL_DEFINE2() 3279 cluster_info = kvcalloc(nr_cluster, sizeof(*cluster_info), in SYSCALL_DEFINE2() 3286 for (ci = 0; ci < nr_cluster; ci++) in SYSCALL_DEFINE2()
|