Searched refs:nr_cluster (Results 1 – 6 of 6) sorted by relevance
/linux-5.19.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 | 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()
|
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 | 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()
|
D | fat.h | 391 int nr_cluster); 452 extern int fat_chain_add(struct inode *inode, int new_dclus, int nr_cluster);
|
/linux-5.19.10/mm/ |
D | swapfile.c | 3084 unsigned long ci, nr_cluster; in SYSCALL_DEFINE2() local 3100 nr_cluster = DIV_ROUND_UP(maxpages, SWAPFILE_CLUSTER); in SYSCALL_DEFINE2() 3102 cluster_info = kvcalloc(nr_cluster, sizeof(*cluster_info), in SYSCALL_DEFINE2() 3109 for (ci = 0; ci < nr_cluster; ci++) in SYSCALL_DEFINE2()
|