Home
last modified time | relevance | path

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

/fs/ext4/
Dballoc.c69 unsigned num_clusters; in ext4_num_overhead_clusters() local
78 num_clusters = ext4_num_base_meta_clusters(sb, block_group); in ext4_num_overhead_clusters()
95 if (block_cluster < num_clusters) in ext4_num_overhead_clusters()
97 else if (block_cluster == num_clusters) { in ext4_num_overhead_clusters()
98 num_clusters++; in ext4_num_overhead_clusters()
106 if (inode_cluster < num_clusters) in ext4_num_overhead_clusters()
108 else if (inode_cluster == num_clusters) { in ext4_num_overhead_clusters()
109 num_clusters++; in ext4_num_overhead_clusters()
118 if ((c < num_clusters) || (c == inode_cluster) || in ext4_num_overhead_clusters()
121 if (c == num_clusters) { in ext4_num_overhead_clusters()
[all …]
Dinode.c1225 int num_clusters; in ext4_da_page_release_reservation() local
1242 num_clusters = EXT4_NUM_B2C(sbi, to_release); in ext4_da_page_release_reservation()
1243 while (num_clusters > 0) { in ext4_da_page_release_reservation()
1246 ((num_clusters - 1) << sbi->s_cluster_bits); in ext4_da_page_release_reservation()
1251 num_clusters--; in ext4_da_page_release_reservation()
/fs/ocfs2/
Dextent_map.c362 u32 *num_clusters) in ocfs2_figure_hole_clusters() argument
400 *num_clusters = UINT_MAX - v_cluster; in ocfs2_figure_hole_clusters()
402 *num_clusters = le32_to_cpu(el->l_recs[i].e_cpos) - v_cluster; in ocfs2_figure_hole_clusters()
532 u32 *p_cluster, u32 *num_clusters) in ocfs2_relative_extent_offsets() argument
540 if (num_clusters) in ocfs2_relative_extent_offsets()
541 *num_clusters = le16_to_cpu(rec->e_leaf_clusters) - coff; in ocfs2_relative_extent_offsets()
545 u32 *p_cluster, u32 *num_clusters, in ocfs2_xattr_get_clusters() argument
597 if (num_clusters) in ocfs2_xattr_get_clusters()
598 *num_clusters = ocfs2_rec_clusters(el, rec) - coff; in ocfs2_xattr_get_clusters()
610 u32 *p_cluster, u32 *num_clusters, in ocfs2_get_clusters() argument
[all …]
Drefcounttree.c66 u32 *num_clusters,
2857 u32 p_cluster, u32 num_clusters, in ocfs2_lock_refcount_allocators() argument
2874 if (num_free_extents < num_clusters + 2) in ocfs2_lock_refcount_allocators()
2879 num_clusters + 2); in ocfs2_lock_refcount_allocators()
2882 p_cluster, num_clusters, in ocfs2_lock_refcount_allocators()
2898 ret = ocfs2_reserve_clusters(OCFS2_SB(sb), num_clusters, in ocfs2_lock_refcount_allocators()
3167 u32 cpos, u32 num_clusters) in ocfs2_cow_sync_writeback() argument
3178 end = offset + (num_clusters << OCFS2_SB(sb)->s_clustersize_bits); in ocfs2_cow_sync_writeback()
3217 u32 *num_clusters, in ocfs2_di_get_clusters() argument
3221 num_clusters, extent_flags); in ocfs2_di_get_clusters()
[all …]
Dextent_map.h49 u32 *num_clusters, unsigned int *extent_flags);
59 u32 *p_cluster, u32 *num_clusters,
71 u32 *num_clusters);
Dsuballoc.h107 u32 *num_clusters);
117 u32 *num_clusters);
133 unsigned int num_clusters);
138 unsigned int num_clusters);
Dxattr.c1090 u32 cpos, p_cluster, num_clusters, bpc, clusters; in ocfs2_xattr_get_value_outside() local
1105 &num_clusters, el, NULL); in ocfs2_xattr_get_value_outside()
1113 for (i = 0; i < num_clusters * bpc; i++, blkno++) { in ocfs2_xattr_get_value_outside()
1131 cpos += num_clusters; in ocfs2_xattr_get_value_outside()
1334 u32 p_cluster, num_clusters; in __ocfs2_xattr_set_value_outside() local
1346 &num_clusters, &xv->xr_list, in __ocfs2_xattr_set_value_outside()
1357 for (i = 0; i < num_clusters * bpc; i++, blkno++) { in __ocfs2_xattr_set_value_outside()
1393 cpos += num_clusters; in __ocfs2_xattr_set_value_outside()
2308 u32 p_cluster, num_clusters; in ocfs2_lock_xattr_remove_allocators() local
2313 &num_clusters, in ocfs2_lock_xattr_remove_allocators()
[all …]
Drefcounttree.h97 u32 cpos, u32 num_clusters);
102 u32 cpos, u32 p_cluster, u32 num_clusters,
Dsuballoc.c2298 u32 *num_clusters) in __ocfs2_claim_clusters() argument
2318 num_clusters); in __ocfs2_claim_clusters()
2347 *num_clusters = res.sr_bits; in __ocfs2_claim_clusters()
2356 ac->ac_bits_given += *num_clusters; in __ocfs2_claim_clusters()
2368 u32 *num_clusters) in ocfs2_claim_clusters() argument
2373 bits_wanted, cluster_start, num_clusters); in ocfs2_claim_clusters()
2540 unsigned int num_clusters, in _ocfs2_free_clusters() argument
2563 bg_start_bit, num_clusters); in _ocfs2_free_clusters()
2567 num_clusters, undo_fn); in _ocfs2_free_clusters()
2574 num_clusters); in _ocfs2_free_clusters()
[all …]
Dlocalalloc.h59 unsigned int num_clusters);
Docfs1_fs_compat.h63 /*170*/ __u64 num_clusters; member
Dioctl.c483 unsigned int max_bits, num_clusters; in ocfs2_info_freefrag_scan_chain() local
528 num_clusters = max_bits - offset; in ocfs2_info_freefrag_scan_chain()
530 num_clusters = ffg->iff_chunksize; in ocfs2_info_freefrag_scan_chain()
533 for (cluster = 0; cluster < num_clusters; cluster++) { in ocfs2_info_freefrag_scan_chain()
Dfile.c352 unsigned int num_clusters = 0; in ocfs2_cow_file_pos() local
364 &num_clusters, &ext_flags); in ocfs2_cow_file_pos()
858 unsigned int num_clusters = 0; in ocfs2_zero_extend_get_range() local
863 &num_clusters, &ext_flags); in ocfs2_zero_extend_get_range()
870 zero_clusters = num_clusters; in ocfs2_zero_extend_get_range()
876 zero_cpos += num_clusters; in ocfs2_zero_extend_get_range()
885 &p_cpos, &num_clusters, in ocfs2_zero_extend_get_range()
896 zero_clusters += num_clusters; in ocfs2_zero_extend_get_range()
Dalloc.h189 unsigned int num_clusters);
Daops.c1420 unsigned int num_clusters = 0; in ocfs2_populate_write_desc() local
1432 if (num_clusters == 0) { in ocfs2_populate_write_desc()
1437 &num_clusters, &ext_flags); in ocfs2_populate_write_desc()
1488 num_clusters--; in ocfs2_populate_write_desc()
Dlocalalloc.c229 unsigned int num_clusters) in ocfs2_local_alloc_seen_free_bits() argument
234 if (num_clusters >= osb->local_alloc_default_bits) { in ocfs2_local_alloc_seen_free_bits()
Dalloc.c5783 unsigned int num_clusters) in ocfs2_truncate_log_append() argument
5830 start_cluster, num_clusters); in ocfs2_truncate_log_append()
5838 num_clusters += le32_to_cpu(tl->tl_recs[index].t_clusters); in ocfs2_truncate_log_append()
5842 num_clusters); in ocfs2_truncate_log_append()
5847 tl->tl_recs[index].t_clusters = cpu_to_le32(num_clusters); in ocfs2_truncate_log_append()
5851 osb->truncated_clusters += num_clusters; in ocfs2_truncate_log_append()
5863 unsigned int num_clusters; in ocfs2_replay_truncate_records() local
5901 num_clusters = le32_to_cpu(rec.t_clusters); in ocfs2_replay_truncate_records()
5908 i, le32_to_cpu(rec.t_start), num_clusters); in ocfs2_replay_truncate_records()
5912 num_clusters); in ocfs2_replay_truncate_records()