Home
last modified time | relevance | path

Searched refs:clusters (Results 1 – 13 of 13) sorted by relevance

/fs/ocfs2/
Docfs2.h719 u32 clusters) in ocfs2_clusters_to_blocks() argument
724 return (u64)clusters << c_to_b_bits; in ocfs2_clusters_to_blocks()
750 unsigned int clusters; in ocfs2_clusters_for_bytes() local
754 clusters = (unsigned int)(bytes >> cl_bits); in ocfs2_clusters_for_bytes()
756 return clusters; in ocfs2_clusters_for_bytes()
763 unsigned int clusters; in ocfs2_bytes_to_clusters() local
765 clusters = (unsigned int)(bytes >> cl_bits); in ocfs2_bytes_to_clusters()
766 return clusters; in ocfs2_bytes_to_clusters()
777 u32 clusters) in ocfs2_clusters_to_bytes() argument
779 return (u64)clusters << OCFS2_SB(sb)->s_clustersize_bits; in ocfs2_clusters_to_bytes()
[all …]
Dresize.c172 static int update_backups(struct inode * inode, u32 clusters, char *data) in update_backups() argument
185 if (cluster >= clusters) in update_backups()
215 u32 clusters = 0; in ocfs2_update_super_and_backups() local
233 clusters = le32_to_cpu(super_di->i_clusters); in ocfs2_update_super_and_backups()
242 ret = update_backups(inode, clusters, super_bh->b_data); in ocfs2_update_super_and_backups()
391 else if (le16_to_cpu(gd->bg_bits) != input->clusters * cl_bpc) in ocfs2_check_new_group()
395 le16_to_cpu(gd->bg_bits), input->clusters); in ocfs2_check_new_group()
428 else if (total_clusters + input->clusters < total_clusters) in ocfs2_verify_group_and_input()
430 else if (input->clusters > cl_cpg) in ocfs2_verify_group_and_input()
432 else if (input->frees > input->clusters) in ocfs2_verify_group_and_input()
[all …]
Docfs2_trace.h505 unsigned int e_cpos, unsigned int clusters),
506 TP_ARGS(owner, cpos, len, index, e_cpos, clusters),
513 __field(unsigned int, clusters)
521 __entry->clusters = clusters;
525 __entry->e_cpos, __entry->clusters)
530 unsigned int clusters, unsigned int depth),
531 TP_ARGS(ino, new_cpos, clusters, depth),
535 __field(unsigned int, clusters)
541 __entry->clusters = clusters;
546 __entry->clusters, __entry->depth)
[all …]
Dfile.c1441 u32 cpos, phys_cpos, clusters, alloc_size; in ocfs2_allocate_unwritten_extents() local
1470 clusters = ocfs2_clusters_for_bytes(inode->i_sb, start + len); in ocfs2_allocate_unwritten_extents()
1471 clusters -= cpos; in ocfs2_allocate_unwritten_extents()
1473 while (clusters) { in ocfs2_allocate_unwritten_extents()
1485 if (alloc_size > clusters) in ocfs2_allocate_unwritten_extents()
1486 alloc_size = clusters; in ocfs2_allocate_unwritten_extents()
1505 clusters -= alloc_size; in ocfs2_allocate_unwritten_extents()
2137 u32 cpos, clusters, extent_len, phys_cpos; in ocfs2_check_range_for_refcount() local
2146 clusters = ocfs2_clusters_for_bytes(sb, pos + count) - cpos; in ocfs2_check_range_for_refcount()
2148 while (clusters) { in ocfs2_check_range_for_refcount()
[all …]
Drefcounttree.c2372 u32 clusters, in ocfs2_calc_refcount_meta_credits() argument
2383 while (clusters) { in ocfs2_calc_refcount_meta_credits()
2385 cpos, clusters, &rec, in ocfs2_calc_refcount_meta_credits()
2415 recs_add, (unsigned long long)cpos, clusters, in ocfs2_calc_refcount_meta_credits()
2420 len = min((u64)cpos + clusters, le64_to_cpu(rec.r_cpos) + in ocfs2_calc_refcount_meta_credits()
2449 if (cpos + clusters < le64_to_cpu(rec.r_cpos) + in ocfs2_calc_refcount_meta_credits()
2457 clusters -= len; in ocfs2_calc_refcount_meta_credits()
2500 (unsigned long long)start_cpos, clusters, in ocfs2_calc_refcount_meta_credits()
2522 u32 clusters, in ocfs2_prepare_refcount_change_for_del() argument
2556 start_cpos, clusters, in ocfs2_prepare_refcount_change_for_del()
[all …]
Dalloc.c96 u32 clusters);
145 u32 clusters);
149 u32 clusters);
190 u32 clusters) in ocfs2_dinode_update_clusters() argument
195 le32_add_cpu(&di->i_clusters, clusters); in ocfs2_dinode_update_clusters()
210 u32 clusters) in ocfs2_dinode_extent_map_truncate() argument
214 ocfs2_extent_map_trunc(inode, clusters); in ocfs2_dinode_extent_map_truncate()
276 u32 clusters) in ocfs2_xattr_value_update_clusters() argument
280 le32_add_cpu(&vb->vb_xv->xr_clusters, clusters); in ocfs2_xattr_value_update_clusters()
322 u32 clusters) in ocfs2_xattr_tree_update_clusters() argument
[all …]
Dsuballoc.c323 u64 p_blkno, unsigned int clusters) in ocfs2_bg_discontig_add_extent() argument
335 rec->e_leaf_clusters = cpu_to_le16(clusters); in ocfs2_bg_discontig_add_extent()
336 le16_add_cpu(&bg->bg_bits, clusters * le16_to_cpu(cl->cl_bpc)); in ocfs2_bg_discontig_add_extent()
338 clusters * le16_to_cpu(cl->cl_bpc)); in ocfs2_bg_discontig_add_extent()
496 u32 p_cpos, clusters; in ocfs2_block_group_grow_discontig() local
515 &clusters); in ocfs2_block_group_grow_discontig()
523 clusters); in ocfs2_block_group_grow_discontig()
525 min_bits = clusters; in ocfs2_block_group_grow_discontig()
Drefcounttree.h44 u32 clusters,
Docfs2_ioctl.h52 __u32 clusters; /* Total number of clusters in this group */ member
Dxattr.c1106 u32 cpos, p_cluster, num_clusters, bpc, clusters; in ocfs2_xattr_get_value_outside() local
1114 clusters = le32_to_cpu(xv->xr_clusters); in ocfs2_xattr_get_value_outside()
1119 while (cpos < clusters) { in ocfs2_xattr_get_value_outside()
1357 u32 clusters = ocfs2_clusters_for_bytes(inode->i_sb, value_len); in __ocfs2_xattr_set_value_outside() local
1363 BUG_ON(clusters > le32_to_cpu(xv->xr_clusters)); in __ocfs2_xattr_set_value_outside()
1365 while (cpos < clusters) { in __ocfs2_xattr_set_value_outside()
3969 u32 clusters, in ocfs2_iterate_xattr_buckets() argument
3975 u32 num_buckets = clusters * bpc; in ocfs2_iterate_xattr_buckets()
3986 (unsigned long long)blkno, clusters); in ocfs2_iterate_xattr_buckets()
5898 u32 clusters = le32_to_cpu(xv->xr_clusters); in ocfs2_xattr_value_attach_refcount() local
[all …]
/fs/ntfs/
Dlcnalloc.c139 s64 clusters; in ntfs_cluster_alloc() local
239 clusters = count; in ntfs_cluster_alloc()
400 if (!--clusters) { in ntfs_cluster_alloc()
755 (unsigned long long)(count - clusters)); in ntfs_cluster_alloc()
/fs/ext4/
Dsysfs.c102 ext4_fsblk_t clusters = (ext4_blocks_count(sbi->s_es) >> in reserved_clusters_store() local
107 if (ret || val >= clusters) in reserved_clusters_store()
Dmballoc.c4695 ext4_grpblk_t clusters = new_entry->efd_count; in ext4_mb_free_metadata() local
4756 sbi->s_mb_free_pending += clusters; in ext4_mb_free_metadata()