Home
last modified time | relevance | path

Searched refs:num_clusters (Results 1 – 25 of 28) sorted by relevance

12

/Linux-v5.15/fs/exfat/
Dfatent.c87 if (clus < EXFAT_FIRST_CLUSTER || sbi->num_clusters <= clus) in is_valid_cluster()
160 unsigned int num_clusters = 0; in __exfat_free_cluster() local
201 num_clusters++; in __exfat_free_cluster()
202 } while (num_clusters < p_chain->size); in __exfat_free_cluster()
222 num_clusters++; in __exfat_free_cluster()
230 sbi->used_clusters -= num_clusters; in __exfat_free_cluster()
326 unsigned int num_clusters = 0, total_cnt; in exfat_alloc_cluster() local
368 num_clusters)) { in exfat_alloc_cluster()
383 num_clusters)) { in exfat_alloc_cluster()
396 num_clusters++; in exfat_alloc_cluster()
[all …]
Dballoc.c210 for (i = EXFAT_FIRST_CLUSTER; i < sbi->num_clusters; in exfat_find_free_bitmap()
219 if (clu_free < sbi->num_clusters) in exfat_find_free_bitmap()
225 clu_base >= sbi->num_clusters) { in exfat_find_free_bitmap()
281 if (clu_start >= sbi->num_clusters || range->len < sbi->cluster_size) in exfat_trim_fs()
284 if (clu_end >= sbi->num_clusters) in exfat_trim_fs()
285 clu_end = sbi->num_clusters - 1; in exfat_trim_fs()
Dfile.c123 unsigned int num_clusters = in __exfat_truncate() local
131 clu.dir += num_clusters; in __exfat_truncate()
132 clu.size -= num_clusters; in __exfat_truncate()
134 while (num_clusters > 0) { in __exfat_truncate()
139 num_clusters--; in __exfat_truncate()
Dinode.c115 unsigned int num_to_be_allocated = 0, num_clusters = 0; in exfat_map_cluster() local
118 num_clusters = in exfat_map_cluster()
122 if (clu_offset >= num_clusters) in exfat_map_cluster()
123 num_to_be_allocated = clu_offset - num_clusters + 1; in exfat_map_cluster()
136 if (clu_offset == num_clusters) in exfat_map_cluster()
208 num_clusters); in exfat_map_cluster()
217 num_clusters += num_to_be_allocated; in exfat_map_cluster()
Dsuper.c89 buf->f_blocks = sbi->num_clusters - 2; /* clu 0 & 1 */ in exfat_statfs()
485 sbi->num_clusters = le32_to_cpu(p_boot->clu_count) + in exfat_read_boot_sector()
499 (u64)sbi->num_clusters * 4) { in exfat_read_boot_sector()
517 sb->s_maxbytes = (u64)(sbi->num_clusters - EXFAT_RESERVED_CLUSTERS) << in exfat_read_boot_sector()
Dexfat_raw.h27 ((sbi)->num_clusters - EXFAT_RESERVED_CLUSTERS)
Dcache.c242 unsigned int limit = sbi->num_clusters; in exfat_get_cluster()
/Linux-v5.15/fs/ext4/
Dballoc.c90 unsigned num_clusters; in ext4_num_overhead_clusters() local
99 num_clusters = ext4_num_base_meta_clusters(sb, block_group); in ext4_num_overhead_clusters()
116 if (block_cluster < num_clusters) in ext4_num_overhead_clusters()
118 else if (block_cluster == num_clusters) { in ext4_num_overhead_clusters()
119 num_clusters++; in ext4_num_overhead_clusters()
127 if (inode_cluster < num_clusters) in ext4_num_overhead_clusters()
129 else if (inode_cluster == num_clusters) { in ext4_num_overhead_clusters()
130 num_clusters++; in ext4_num_overhead_clusters()
139 if ((c < num_clusters) || (c == inode_cluster) || in ext4_num_overhead_clusters()
142 if (c == num_clusters) { in ext4_num_overhead_clusters()
[all …]
/Linux-v5.15/fs/ocfs2/
Dextent_map.c347 u32 *num_clusters) in ocfs2_figure_hole_clusters() argument
385 *num_clusters = UINT_MAX - v_cluster; in ocfs2_figure_hole_clusters()
387 *num_clusters = le32_to_cpu(el->l_recs[i].e_cpos) - v_cluster; in ocfs2_figure_hole_clusters()
518 u32 *p_cluster, u32 *num_clusters) in ocfs2_relative_extent_offsets() argument
526 if (num_clusters) in ocfs2_relative_extent_offsets()
527 *num_clusters = le16_to_cpu(rec->e_leaf_clusters) - coff; in ocfs2_relative_extent_offsets()
531 u32 *p_cluster, u32 *num_clusters, in ocfs2_xattr_get_clusters() argument
584 if (num_clusters) in ocfs2_xattr_get_clusters()
585 *num_clusters = ocfs2_rec_clusters(el, rec) - coff; in ocfs2_xattr_get_clusters()
596 u32 *p_cluster, u32 *num_clusters, in ocfs2_get_clusters() argument
[all …]
Drefcounttree.c57 u32 *num_clusters,
2837 u32 p_cluster, u32 num_clusters, in ocfs2_lock_refcount_allocators() argument
2854 if (num_free_extents < num_clusters + 2) in ocfs2_lock_refcount_allocators()
2861 p_cluster, num_clusters, in ocfs2_lock_refcount_allocators()
2877 ret = ocfs2_reserve_clusters(OCFS2_SB(sb), num_clusters, in ocfs2_lock_refcount_allocators()
3145 u32 cpos, u32 num_clusters) in ocfs2_cow_sync_writeback() argument
3156 end = offset + (num_clusters << OCFS2_SB(sb)->s_clustersize_bits); in ocfs2_cow_sync_writeback()
3195 u32 *num_clusters, in ocfs2_di_get_clusters() argument
3199 num_clusters, extent_flags); in ocfs2_di_get_clusters()
3205 u32 num_clusters, unsigned int e_flags) in ocfs2_make_clusters_writable() argument
[all …]
Dextent_map.h34 u32 *num_clusters, unsigned int *extent_flags);
47 u32 *p_cluster, u32 *num_clusters,
59 u32 *num_clusters);
Dsuballoc.h107 u32 *num_clusters);
117 u32 *num_clusters);
133 unsigned int num_clusters);
138 unsigned int num_clusters);
Dxattr.c1104 u32 cpos, p_cluster, num_clusters, bpc, clusters; in ocfs2_xattr_get_value_outside() local
1119 &num_clusters, el, NULL); in ocfs2_xattr_get_value_outside()
1127 for (i = 0; i < num_clusters * bpc; i++, blkno++) { in ocfs2_xattr_get_value_outside()
1145 cpos += num_clusters; in ocfs2_xattr_get_value_outside()
1353 u32 p_cluster, num_clusters; in __ocfs2_xattr_set_value_outside() local
1365 &num_clusters, &xv->xr_list, in __ocfs2_xattr_set_value_outside()
1376 for (i = 0; i < num_clusters * bpc; i++, blkno++) { in __ocfs2_xattr_set_value_outside()
1412 cpos += num_clusters; in __ocfs2_xattr_set_value_outside()
2327 u32 p_cluster, num_clusters; in ocfs2_lock_xattr_remove_allocators() local
2332 &num_clusters, in ocfs2_lock_xattr_remove_allocators()
[all …]
Drefcounttree.h87 u32 cpos, u32 num_clusters);
92 u32 cpos, u32 p_cluster, u32 num_clusters,
Dlocalalloc.h49 unsigned int num_clusters);
Dsuballoc.c2304 u32 *num_clusters) in __ocfs2_claim_clusters() argument
2324 num_clusters); in __ocfs2_claim_clusters()
2353 *num_clusters = res.sr_bits; in __ocfs2_claim_clusters()
2362 ac->ac_bits_given += *num_clusters; in __ocfs2_claim_clusters()
2374 u32 *num_clusters) in ocfs2_claim_clusters() argument
2379 bits_wanted, cluster_start, num_clusters); in ocfs2_claim_clusters()
2547 unsigned int num_clusters, in _ocfs2_free_clusters() argument
2570 bg_start_bit, num_clusters); in _ocfs2_free_clusters()
2574 num_clusters, undo_fn); in _ocfs2_free_clusters()
2581 num_clusters); in _ocfs2_free_clusters()
[all …]
Docfs1_fs_compat.h48 /*170*/ __u64 num_clusters; member
Dioctl.c445 unsigned int max_bits, num_clusters; in ocfs2_info_freefrag_scan_chain() local
490 num_clusters = max_bits - offset; in ocfs2_info_freefrag_scan_chain()
492 num_clusters = ffg->iff_chunksize; in ocfs2_info_freefrag_scan_chain()
495 for (cluster = 0; cluster < num_clusters; cluster++) { in ocfs2_info_freefrag_scan_chain()
Dfile.c341 unsigned int num_clusters = 0; in ocfs2_cow_file_pos() local
353 &num_clusters, &ext_flags); in ocfs2_cow_file_pos()
867 unsigned int num_clusters = 0; in ocfs2_zero_extend_get_range() local
872 &num_clusters, &ext_flags); in ocfs2_zero_extend_get_range()
879 zero_clusters = num_clusters; in ocfs2_zero_extend_get_range()
885 zero_cpos += num_clusters; in ocfs2_zero_extend_get_range()
894 &p_cpos, &num_clusters, in ocfs2_zero_extend_get_range()
905 zero_clusters += num_clusters; in ocfs2_zero_extend_get_range()
Dalloc.h173 unsigned int num_clusters);
Daops.c1390 unsigned int num_clusters = 0; in ocfs2_populate_write_desc() local
1402 if (num_clusters == 0) { in ocfs2_populate_write_desc()
1407 &num_clusters, &ext_flags); in ocfs2_populate_write_desc()
1465 num_clusters--; in ocfs2_populate_write_desc()
Dlocalalloc.c213 unsigned int num_clusters) in ocfs2_local_alloc_seen_free_bits() argument
218 if (num_clusters >= osb->local_alloc_default_bits) { in ocfs2_local_alloc_seen_free_bits()
/Linux-v5.15/arch/mips/include/asm/
Dmips-cps.h115 unsigned int num_clusters; in mips_cps_numclusters() local
120 num_clusters = read_gcr_config() & CM_GCR_CONFIG_NUM_CLUSTERS; in mips_cps_numclusters()
121 num_clusters >>= __ffs(CM_GCR_CONFIG_NUM_CLUSTERS); in mips_cps_numclusters()
122 return num_clusters; in mips_cps_numclusters()
/Linux-v5.15/drivers/cpufreq/
Dtegra194-cpufreq.c40 size_t num_clusters; member
245 if (cl >= data->num_clusters) in tegra194_cpufreq_init()
364 data->num_clusters = MAX_CLUSTERS; in tegra194_cpufreq_probe()
365 data->tables = devm_kcalloc(&pdev->dev, data->num_clusters, in tegra194_cpufreq_probe()
383 for (i = 0; i < data->num_clusters; i++) { in tegra194_cpufreq_probe()
/Linux-v5.15/drivers/soc/qcom/
Dsocinfo.c148 __le32 num_clusters; member
169 u32 num_clusters; member
465 qcom_socinfo->info.num_clusters = __le32_to_cpu(info->num_clusters); in socinfo_debugfs_init()
471 &qcom_socinfo->info.num_clusters); in socinfo_debugfs_init()

12