/fs/exfat/ |
D | fatent.c | 152 unsigned int num_clusters = 0; in __exfat_free_cluster() local 193 num_clusters++; in __exfat_free_cluster() 194 } while (num_clusters < p_chain->size); in __exfat_free_cluster() 214 num_clusters++; in __exfat_free_cluster() 222 sbi->used_clusters -= num_clusters; in __exfat_free_cluster() 318 unsigned int num_clusters = 0, total_cnt; in exfat_alloc_cluster() local 360 num_clusters)) { in exfat_alloc_cluster() 375 num_clusters)) { in exfat_alloc_cluster() 388 num_clusters++; in exfat_alloc_cluster() 410 sbi->used_clusters += num_clusters; in exfat_alloc_cluster() [all …]
|
D | balloc.c | 214 for (i = EXFAT_FIRST_CLUSTER; i < sbi->num_clusters; in exfat_find_free_bitmap() 223 if (clu_free < sbi->num_clusters) in exfat_find_free_bitmap() 229 clu_base >= sbi->num_clusters) { in exfat_find_free_bitmap() 285 if (clu_start >= sbi->num_clusters || range->len < sbi->cluster_size) in exfat_trim_fs() 288 if (clu_end >= sbi->num_clusters) in exfat_trim_fs() 289 clu_end = sbi->num_clusters - 1; in exfat_trim_fs()
|
D | file.c | 122 unsigned int num_clusters = in __exfat_truncate() local 130 clu.dir += num_clusters; in __exfat_truncate() 131 clu.size -= num_clusters; in __exfat_truncate() 133 while (num_clusters > 0) { in __exfat_truncate() 138 num_clusters--; in __exfat_truncate()
|
D | inode.c | 115 unsigned int num_to_be_allocated = 0, num_clusters = 0; in exfat_map_cluster() local 118 num_clusters = in exfat_map_cluster() 121 if (clu_offset >= num_clusters) in exfat_map_cluster() 122 num_to_be_allocated = clu_offset - num_clusters + 1; in exfat_map_cluster() 135 if (clu_offset == num_clusters) in exfat_map_cluster() 207 num_clusters); in exfat_map_cluster() 216 num_clusters += num_to_be_allocated; in exfat_map_cluster()
|
D | super.c | 89 buf->f_blocks = sbi->num_clusters - 2; /* clu 0 & 1 */ in exfat_statfs() 484 sbi->num_clusters = le32_to_cpu(p_boot->clu_count) + in exfat_read_boot_sector() 498 (u64)sbi->num_clusters * 4) { in exfat_read_boot_sector() 516 sb->s_maxbytes = (u64)(sbi->num_clusters - EXFAT_RESERVED_CLUSTERS) << in exfat_read_boot_sector()
|
D | exfat_raw.h | 27 ((sbi)->num_clusters - EXFAT_RESERVED_CLUSTERS)
|
D | exfat_fs.h | 219 unsigned int num_clusters; /* num of clusters in volume */ member 390 if (clus < EXFAT_FIRST_CLUSTER || sbi->num_clusters <= clus) in is_valid_cluster()
|
D | cache.c | 242 unsigned int limit = sbi->num_clusters; in exfat_get_cluster()
|
D | dir.c | 94 (u64)sbi->num_clusters << dentries_per_clu_bits); in exfat_readdir()
|
/fs/ocfs2/ |
D | refcounttree.c | 57 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 …]
|
D | extent_map.c | 347 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 …]
|
D | extent_map.h | 34 u32 *num_clusters, unsigned int *extent_flags); 47 u32 *p_cluster, u32 *num_clusters, 59 u32 *num_clusters);
|
D | suballoc.h | 107 u32 *num_clusters); 117 u32 *num_clusters); 133 unsigned int num_clusters); 138 unsigned int num_clusters);
|
D | xattr.c | 1104 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 …]
|
D | refcounttree.h | 87 u32 cpos, u32 num_clusters); 92 u32 cpos, u32 p_cluster, u32 num_clusters,
|
D | suballoc.c | 2301 u32 *num_clusters) in __ocfs2_claim_clusters() argument 2321 num_clusters); in __ocfs2_claim_clusters() 2350 *num_clusters = res.sr_bits; in __ocfs2_claim_clusters() 2359 ac->ac_bits_given += *num_clusters; in __ocfs2_claim_clusters() 2371 u32 *num_clusters) in ocfs2_claim_clusters() argument 2376 bits_wanted, cluster_start, num_clusters); in ocfs2_claim_clusters() 2544 unsigned int num_clusters, in _ocfs2_free_clusters() argument 2567 bg_start_bit, num_clusters); in _ocfs2_free_clusters() 2571 num_clusters, undo_fn); in _ocfs2_free_clusters() 2578 num_clusters); in _ocfs2_free_clusters() [all …]
|
D | localalloc.h | 49 unsigned int num_clusters);
|
D | ioctl.c | 445 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()
|
D | ocfs1_fs_compat.h | 48 /*170*/ __u64 num_clusters; member
|
D | file.c | 341 unsigned int num_clusters = 0; in ocfs2_cow_file_pos() local 353 &num_clusters, &ext_flags); in ocfs2_cow_file_pos() 871 unsigned int num_clusters = 0; in ocfs2_zero_extend_get_range() local 876 &num_clusters, &ext_flags); in ocfs2_zero_extend_get_range() 883 zero_clusters = num_clusters; in ocfs2_zero_extend_get_range() 889 zero_cpos += num_clusters; in ocfs2_zero_extend_get_range() 898 &p_cpos, &num_clusters, in ocfs2_zero_extend_get_range() 909 zero_clusters += num_clusters; in ocfs2_zero_extend_get_range()
|
D | alloc.h | 173 unsigned int num_clusters);
|
D | aops.c | 1390 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()
|
D | localalloc.c | 213 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()
|
D | alloc.c | 5839 unsigned int num_clusters) in ocfs2_truncate_log_append() argument 5886 start_cluster, num_clusters); in ocfs2_truncate_log_append() 5894 num_clusters += le32_to_cpu(tl->tl_recs[index].t_clusters); in ocfs2_truncate_log_append() 5898 num_clusters); in ocfs2_truncate_log_append() 5903 tl->tl_recs[index].t_clusters = cpu_to_le32(num_clusters); in ocfs2_truncate_log_append() 5907 osb->truncated_clusters += num_clusters; in ocfs2_truncate_log_append() 5918 unsigned int num_clusters; in ocfs2_replay_truncate_records() local 5954 num_clusters = le32_to_cpu(rec.t_clusters); in ocfs2_replay_truncate_records() 5961 i, le32_to_cpu(rec.t_start), num_clusters); in ocfs2_replay_truncate_records() 5965 num_clusters); in ocfs2_replay_truncate_records()
|
/fs/ext4/ |
D | balloc.c | 90 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 …]
|